Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

XMLHttpRequest and Firefox Problem

26 vues
Accéder directement au premier message non lu

gobera

non lue,
3 mai 2005, 15:11:3603/05/2005
à
There seems to be a problem with XMLHttpRequest and Firefox when the
function that makes the asynchrounous request is called from another
window. The request was made ok (open and send), but when trying to
retreive data from the object (like status or responseXML), it threw
the exception:

Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
http://localhost/js/common.js :: processReqChange :: line 65" data:
no]
Source File: http://localhost/js/common.js
Line: 65

The function that creates an XMLHttpRequest object and loads the XML
document is called loadXML (taken from
http://developer.apple.com/internet/webcontent/xmlhttpreq.html)
I solved the problem by wrapping the call to the loadXML function in
setTimeout("loadXMLDoc('"+url+"')", 0);

I don't know why it happened or why this worked, but this solved my
problem.
I hope this is useful to somebody with the same problem.

0 nouveau message