Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-30-2010, 04:06 PM   #1
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
problem with js ajax, return code 0

I have been trying to develop and test my own website on my computer but when the onreadystatechange function with a readystate 4 i get status code 0. It's really strange as sometimes I get the more optimistic 200 but more often than not 0. I tried to set it an an invalid url and i get 404 fine. Can anyone tell me whats going on?
Old 10-31-2010, 12:51 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,538

Rep: Reputation: 134Reputation: 134
No, I can't.

I would try to use a standard js library like jquery or mootools and make the ajax call with that or call the same url non-ajax style. Or take a look at the server access logs...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg return error :post installation script return an error code (1) grimfold Debian 2 09-10-2009 01:55 PM
LXer: New Ajax code to show movies and slide shows LXer Syndicated Linux News 0 10-26-2007 10:40 PM
Good Ajax Code Examples Neko_D Programming 5 04-09-2007 03:17 PM
Where to find a server-side php code that interacts with Ajax? Basel Programming 2 02-05-2006 05:11 AM
dd return code barefootdoctor Linux - General 2 10-13-2005 12:54 PM

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration