SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Problems with ajax
-
Jun 19, 2007, 03:58 #1
- Join Date
- Sep 2006
- Posts
- 62
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problems with ajax
I have do in ajax a script that call a file xml.
But in firebug i receive this error:
uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: javascript: eval(__firebugTemp__); :: anonymous :: line 1" data: no]
And this:
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://nerto.it/ajax.js :: anonymous :: line 69" data: no]
At line 69 of my file there is:
Code:receiveReq.onreadystatechange = function(){ line69: if (receiveReq.readyState == 4&&receiveReq.status == 200) { xmldoc = receiveReq.responseXML; if(serviceChat)chatReceive(); if(serviceTop)topReceive(); if(serviceLast)lastReceive(); if(serviceCosasifa)cosasifaReceive(); if(serviceLocalita)localitaReceive(); if(serviceControlloEsistenza)esistenzaReceive(); return false; } } receiveReq.send(null);
Thanks
-
Jun 19, 2007, 04:18 #2
- Join Date
- Jun 2007
- Location
- Manchester, UK
- Posts
- 83
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problems with ajax
Hi,
Try:
Code:req.send('');
Code:req.send(null);
-
Jun 19, 2007, 08:11 #3
- Join Date
- Sep 2006
- Posts
- 62
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The error there is again...
-
Jun 19, 2007, 08:43 #4
- Join Date
- Jun 2007
- Location
- Manchester, UK
- Posts
- 83
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
ajax problem
hi
try
Code:if ((req.status == 200)||(req.status == 0))
Code:if (req.status && req.status == 200)
Bookmarks