What is the usecase for needing to acces the responseXML coming from Wicket?

Martijn

On Mon, Dec 29, 2008 at 6:11 PM, Vance Fellers <nvfellers...@yahoo.com> wrote:
>
> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to