Firefox expects more (spinning circle shown) after AJAX post to CGI complete. How do I tell Firefox thats all its getting?
After POSTing a simple form to an nph CGI using AJAX, Firefox appears to expect more and shows the spinning circle after the request is complete and the returned content is displayed in the browser window.
The javascript works OK with Internet Explorer.
The CGI returns Content-Length in the HTTP header.
submitForm.xml.onreadystatechange=function()
{
if(submitForm.xml.readyState==4) { // Everything ok here }
}
How do I tell Firefox thats all its getting and to replace the spinning circle with the website favicon?
Browser O/Ss: Windows XP and openSUSE 2012.1 Server O/S: Linux (Mandriva 2009) Httpd: Apache 2.2.22
Thanks.
Chosen solution
See if you can find the answer with the links here:
http://www.google.com/search?q=site:developer.mozilla.org%20document.write%28%29&ie=utf-8&oe=utf-8&lr=lang_en
All Replies (2)
Sorted it.
Its document.write() that is the problem in FF. Using ...innerHtml= instead fixes it.
Anyone know why FF's implementation of document.write() fails in this way?
Chosen Solution
See if you can find the answer with the links here:
http://www.google.com/search?q=site:developer.mozilla.org%20document.write%28%29&ie=utf-8&oe=utf-8&lr=lang_en