Hi, i am currently having problem with the split function. Below are the code:
callback_hello will receive a return string value and store in str_b4_split.
I tried to display str_b4_split , and it is successful using document.write( str_b4_split).
However, when i tried to add in the split, i was unable to display any of it in IE7, and firefox 2.0. Firefox shown nothing, IE7 shown "Object doesn't support this property or method" in error msg.
May i know what is the reason behind this? thank you
Code:
function callback_hello(str) {
var str_b4_split = (str);
var str_af_split = str_b4_split.split(" ");
document.write(str_af_split);
}
I tried to display str_b4_split , and it is successful using document.write( str_b4_split).
However, when i tried to add in the split, i was unable to display any of it in IE7, and firefox 2.0. Firefox shown nothing, IE7 shown "Object doesn't support this property or method" in error msg.
May i know what is the reason behind this? thank you
Comment