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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginning AJAX question

Status
Not open for further replies.

jaschulz

Programmer
Joined
May 20, 2005
Messages
89
Location
FR
My HTTPRequest always returns status = 0 (which is not even listed on the WC3 page of possible responses).

I am retrieving a simple text file, and the responseText does contain the text I want. So my function works even though the status is 0.

What does status = 0 mean? Is this a real problem?

Thanks,

JAS
 
Hi

That sound bad. Unless you use an unbelievably buggy web server, that can not be 0. Show us your code, I think the problem lies somewhere else.

Feherke.
 
Set this up on a proper web server and you will find it works.

Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Using:

if (http_request.status == 200 || http_request.status == 0)...

lets me test locally in FF and Safari and Opera (which is important to me) but IE7 still gives the "access denied" error. Is there anyway around that?

JAS
 
You should examine its security zone(s) setting on "access data sources across domain". If it is squarely forbidden, lower it to at least "prompt".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top