Hello,
thanks for your effort in debugging.
Giorgio Maone wrote:OK, after a while that I've kept your page opened in a background tab, the alert popped out.
It turns out, though, that it was a "304 not modified" response, which by your logic ("if (status !== 0)") is treated as an error while it is not. It just means you should use your cached data, if any, or explicitly ask for a refresh.
Hmm... that's strange. When I was debugging this issue it was like: NoScript enable: Doesn't work. Without NoScript: Does work. Using wireshark I noticed that there was no http-request traffic while using NoScript.
The status condition is not responsible for detecting errors. When being there, JQuery has run into an exeception. (L 58). This usually does not / should not happen with 304-codes.
To my obersation: status is 0, when no http-request has been made and thus there is no return-code is available. This coincides with the fact that, error and errorThrown are nil.
This imho leads to the conclusion:
a) Either JQuery is buggy and is unable to perform XHR-Requests correctly (nothing to see in wireshark, blank fields in the callback)
b) Or NoScript prevents JQuery from making its call, without notifying the user.
Personally I suspect b) (due to the "No NoScript => No Problem" observation) but I'm not sure about this. I might be a comibanation of NoScript and JQuery, too.
Thanks,
Jan
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131030 Firefox/17.0 Iceweasel/17.0.10