Hey gang –
I’ve got an ajax function that works fine and returns the xml exactly as it should, but in an effort to package it up and make it a little more useable, I can’t handle the output. Upon success, the ajax function uses:
return xmlhttp.responseXML;
So, inside of a different function I want to get the output of this server call and store it. Pretty simple, eh? Here’s what I do:
var response = ajax_function(foo);
response comes back undefined! This seems very elementary but I ain’t catching it, any takers?
Also I should mention that using firebug I see the xml output just as I would expect it, so it’s only a problem of passing the output.