I need to access the XMLHttpRequest.responseXML from my javascript for a
Wicket web page. I followed the code in the wicket-ajax.js, seen below. I
assume this.loadedCallback is the onSuccess function, but how to access
responseXML passed in the xmldoc variable, or have loadedCallback call my
javascript function with the responseXML?
> if (typeof(window.XMLHttpRequest) != "undefined" && typeof(DOMParser) !=
> "undefined") {
> var parser = new DOMParser();
> xmldoc = parser.parseFromString(responseAsText, "text/xml");
> } else if (window.ActiveXObject) {
> xmldoc = t.responseXML;
> }
> // invoke the loaded callback with an xml document
> this.loadedCallback(xmldoc);
> }
Vance
--
View this message in context:
http://www.nabble.com/How-to-access-the-AJAX-transport.responseXML-tp21206061p21206061.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]