Visit Jeremy's Blog.
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, 05: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, 01:51 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
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 02:55 PM
LXer: New Ajax code to show movies and slide shows LXer Syndicated Linux News 0 10-26-2007 11:40 PM
Good Ajax Code Examples Neko_D Programming 5 04-09-2007 04:17 PM
Where to find a server-side php code that interacts with Ajax? Basel Programming 2 02-05-2006 06:11 AM
dd return code barefootdoctor Linux - General 2 10-13-2005 01:54 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:44 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