XmlHttpRequest Debugging (update)

Here's XmlHttpRequest - Debugging (version 1.1), an update on the original.

The fixed bug: onreadystatechange callbacks weren't getting triggered properly. The reason was the native XmlHttpRequest object doesn't call onreadystatechange if it also has an onload callback. The replacement onload handler now calls any onload and onreadystatechange callback from the user, emulating the same logic.

Update (2006/02/20): A newer version is available, supporting Firefox 1.5 with Greasemonkey 0.6.4.

Posted by Julien on October 21, 2005. Permalink
Comments
comments powered by Disqus

I've tried to install this script on three different machines, all running the latest version of XP, with Greasemonkey 0.5.3 and Firefox 1.0.7. In every case, sadly, I get the menu item "User Script Commands" greyed out. There's no javascript error, so I'm really puzzled. Why does this clearly work so well for others, yet on three different Windows machines it won't work for me?

Posted by: Anthony at November 14, 2005 06:54 PM

Anthony, I'll follow up with you by email. Have you tried the older version (v1.0)?

Posted by: Julien Couvreur at November 15, 2005 12:22 PM

Hey I cannot get it to work. The window pops up when I call the ajax enabled page. The script does not work, and I get nothing on the window either. The 'User Script Commands' is greyed out too

Posted by: ashish at December 5, 2005 11:22 PM

I cannot get this to work for the life of me, I've tried it locally, on digg, gmail, google maps, etc. The div comes up, I cannot move it and it doesn't record any of the request/responses.

Posted by: Jim at December 21, 2005 04:09 PM

I can't get it to work either. Same tests as Jim. Would love to have a fix!

Posted by: Kevin at December 28, 2005 03:42 PM

I noticed in my javascript console it keeps saying "XMLHttpRequest has no properties", on lines 12 and 48.

I still cannot get this script working or the one you wrote that just writes to the console. Would love to get this puppy workin ;)

Posted by: Jim at December 29, 2005 09:53 PM

Sorry for the problems with Firefox 1.5 and Greasemonkey 0.6.4. I'm still looking into the issue and hope to get a fix ready soon.

Posted by: Julien Couvreur at January 4, 2006 09:27 PM

Excellent script ! But i'm waitin' (avec impatience :) the fix for firefox 1.5. Keep up the good work.

Posted by: cow at January 5, 2006 06:01 AM

Great tool! I'm using it to debug a site and it seems to duplicate my ajax postings. I have a button that adds another element. with this script activated, it makes two elements, etc.

Is that a me thing?

Posted by: John at March 29, 2006 02:20 PM

I am also seeing duplicate post problem.

Posted by: Pratap at May 23, 2006 06:07 AM

I'm getting this to work great on my local machine, but when I publish it to the server, it blows up at dojo.flash.comm.XmlHttp. If I display dojo.flash.comm, it is there with a list of methods, but XmlHttp isn't one of them. Any idea why it would not have this method?

Thanks for any help/ideas.

Ron

Posted by: Ron at June 22, 2006 02:58 PM
Trackbacks