Posts tagged firefox
Since I just spent the better part of Friday debugging this problem and then the better part of Friday night Googling for a work around, it’s worth noting that there is a “bug” in the Firefox implementation of the xmlHTTPRequest object when using it for synchronous calls (i.e. the rest of the script pauses and waits for the request to complete, unlike typical asynchronous AJAX calls). When using the xmlhttp object in a synchronous fashion, Firefox does not process the onreadystatechange handler. Thus, any libraries that are dependent on this (for running post processing functions for example) will fail to work under these conditions. Interestingly, having the Firebug extension installed causes the object to behave properly. So a secondary note is to always test your apps in a “clean” instance of Firefox.
Here are the details that I came across, along with a work around: Lukav’s Weblog » Blog Archive » Firefox firebug and synchronos calls problem.
I’ve also set up a set of tests to demonstrate the problem. Try in both Firefox and IE to see the differences.
* This post was originally published on June 5, 2007 at http://www.csb7.com/blogs/whyblogwhy/2007/06/05/a_note_about_synchronous_xmlhttp_request
I just created my first extension for Firefox. I call it Clean And Close, and it’s a simple overlay for the Download Manager window that replaces the default Clean Up button with a spiffy new Clean & Close button. The new button does exactly what the old button does, except that it also closes the window afterwards. I wrote it as a learning exercise, but it also gets rid of an extra click that was always an annoyance for me. It’s currently pending approval on the Mozilla Addons site, but should be available for download soon.
If you’re looking to develop your own extensions for Mozilla products, the Building an Extension tutorial on Mozilla’s Developer web site is what I referenced for Clean & Close.
* This post was originally published on May 23, 2006 at http://www.csb7.com/whyblogwhy/index.php/2006/05/23/clean-and-close-extension-for-firefox-et-al/