I got the following error:
Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_A VAILABLE) [nsIXMLHttpReque st.status]" nsresult:
"0x80040111 (NS_ERROR_NOT_A VAILABLE)"
.... with Firefox when using XMLHttpRequest. What's happenening? Is the
object being garbage collected before the network operation finishes?
My usage pattern is:
function modelChanged() {
var req = new XMLHttpRequest( )
req.open('PUT', ... , true)
req.onreadystat echange = function() {
if(req.readySta te == 4) {
// do stuff
}
}
req.send(docume ntToSend)
}
I am not holding a reference to the req object from the global scope.
Should I? I don't know how many HTTP operations I have going at a given
moment. What kind of stretchable data structure should I use for holding
the references to the request objects? Or should I attempt to cancel the
unfinished connection if another one needs to start before the preceding
one has finished?
--
Henri Sivonen
hsivonen@iki.fi
Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_A VAILABLE) [nsIXMLHttpReque st.status]" nsresult:
"0x80040111 (NS_ERROR_NOT_A VAILABLE)"
.... with Firefox when using XMLHttpRequest. What's happenening? Is the
object being garbage collected before the network operation finishes?
My usage pattern is:
function modelChanged() {
var req = new XMLHttpRequest( )
req.open('PUT', ... , true)
req.onreadystat echange = function() {
if(req.readySta te == 4) {
// do stuff
}
}
req.send(docume ntToSend)
}
I am not holding a reference to the req object from the global scope.
Should I? I don't know how many HTTP operations I have going at a given
moment. What kind of stretchable data structure should I use for holding
the references to the request objects? Or should I attempt to cancel the
unfinished connection if another one needs to start before the preceding
one has finished?
--
Henri Sivonen
hsivonen@iki.fi
Comment