Active
Project:
Todolist
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2007 at 05:46 UTC
Updated:
8 Oct 2009 at 20:34 UTC
I have discovered that the jQuery $.ajax() method will sometimes fail with an XMLHTTPRequest status of 0, which is apparently a problem that plagues AJAX applications in general. I have dealt with it in this module by automatically retrying when that happens, but sometimes it results in duplicate actions being taken (e.g. two copies of the same task being created).
I'm not sure how I am going to fix this yet, but I'm sure there's a way. Any suggestions are welcome.
Comments
Comment #1
gagarine commentedOn the page http://developer.mozilla.org/en/docs/XMLHttpRequest#Asynchronous_Usage they simply test the status of the request....
if (req.readyState == 4) {
if(req.status == 200)
dump(req.responseText);
else
dump("Error loading page\n");
}
Comment #2
marvil07 commentedmoving to 6.x to avoid forget it