I have a PhoneGap project and lately I've been been hitting a lot of random "status 0" results. I can literally try the same end-point 10 times in a row, passing the same post parameters, and the status will flip between a 200 and a 0. In both cases, the results return almost instantly - it is not a timeout issue.
I'm using PhoneGap in iOS, if the platform is a factor. Does anyone have any ideas on where to start looking?
FYI - I implemented the tip at Ajax https call in ios using PhoneGap not working?. At first I thought it helped, but perhaps it was just a run of good luck.
It is perfectly normal to get a status of 0 when requesting a URL over AJAX. Since some browsers will return a 0 on a CORS request but since you are doing your request from the file:// protocol CORS does not apply. When I do a AJAX request I take 200 and 0 as a success.