Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

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.

Alla svar (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

Vald lösning