Irishjugg
01-08-2009, 11:39 PM
Hopefully a quick question.
in a file I call a function ending with
text = xmlhttp.responseText;
//alert('more: '+text); (commented on purpose for this example)
return text;
(this is an ajaxform submission thing)
in the calling function:
text = ajaxformSP(val, handler, form);
alert('try: '+text);
If I uncomment the alert in the first code snippet, I get an alert with "Try: and the correct response text".
If I leave it commented, the alert 'try '+ text has null or nothing for text.
Anyone have any idea why, and also, Any idea how I can deal with this issue without having to make an alert?
in a file I call a function ending with
text = xmlhttp.responseText;
//alert('more: '+text); (commented on purpose for this example)
return text;
(this is an ajaxform submission thing)
in the calling function:
text = ajaxformSP(val, handler, form);
alert('try: '+text);
If I uncomment the alert in the first code snippet, I get an alert with "Try: and the correct response text".
If I leave it commented, the alert 'try '+ text has null or nothing for text.
Anyone have any idea why, and also, Any idea how I can deal with this issue without having to make an alert?