A
alex.david
Hi,
in tutorials you find this code sample:
How can I use the responseXML in the "calling function"?
Reason is, I don't want to pass all the vars through the functions (and
I don't know how, anyway).
myAjax doesn't seem to have a responseXML or anything helpful at all.
Thanks in advance
Alex
in tutorials you find this code sample:
Code:
var myMap;
....
var url = "my_xml.xml";
var myAjax = new Ajax.Request(
url,
{
method: 'get',
onComplete: showResponse
});
// here i need something like:
// response = someObject.responseXML;
// so i can do this:
// myMap.createSomeMarkersWith(response);
....
function showResponse(request){
doSomethingwith(request.responseXML);
}
How can I use the responseXML in the "calling function"?
Reason is, I don't want to pass all the vars through the functions (and
I don't know how, anyway).
myAjax doesn't seem to have a responseXML or anything helpful at all.
Thanks in advance
Alex