i am having a problem with the below code , it whenever i would try to request a the JSON data from the website , i would always get back a response code 0. Does anyone know why
The status code will be 0 for illegal cross-origin requests, see XMLHttpRequest status 0 (responseText is empty) and XMLHTTPRequest.status returns 0 and responseText is blank in FireFox 3.5.
Also, on FF the status code will be 0 for local file:// requests.