Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ajax works on localhost not on web server with FireFox

Status
Not open for further replies.

lasers

Technical User
Oct 24, 2007
12
I have an ajax script that works in IE6 and FireFox on my localhost. When I moved everything to a webserver, the ajax script no longer works in FireFox. It does not get past:
Code:
if(XMLHttpRequestObject.readyState==4 && (!XMLHttpRequestObject.status || XMLHttpRequestObject.status==200)){

Firefox resolves that statement to False on the webserver. But on my localhost all works well.

Can anyone think of a reason why it works in FireFox on localhost but not on a web server?

thanks
 
the status code returned is 411 something to do with Content-length ?

Why would I not get this error on localhost?
 
have you set the content length in the header?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top