Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox expects more (spinning circle shown) after AJAX post to CGI complete. How do I tell Firefox thats all its getting?

more options

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.

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.

All Replies (2)

more options

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?

more options

Chosen Solution