This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > August 2005 > Cant set onload of XMLHTTPRequest





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cant set onload of XMLHTTPRequest
Gary van der Merwe

2005-08-30, 11:22 pm

Hi

I'm writing a extension for sunbird. For some reason I can't access
XMLHTTPRequest (), but I found this way to instanate a XMLHTTPRequest,
which works for syncroness calls.

var Request =
Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Components.interfaces.nsIXMLHttpRequest);

But when using this method, when I set the onload event, I get this
error:
"Cannot modify properties of a WrappedNative".

Any ideas?


Gary

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews