ajax_info.txt is a valid file on my computer. The error returns as thus:
Uncaught Error: INVALID_STATE_ERR DOM Exception 11
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Many browsers will refuse to load local files through an
XMLHttpRequestas a security measure. AJAX requests are restricted by the Same Origin Policy, but as the linked Wikipedia page notes,Loading a local file, even with a relative URL, is the same as loading a file with the
file:protocol. Many web browsers restrict this, with good reason – imagine running a malicious HTML file on your local machine that could load any file on your computer and post its contents to a remote server.So my guess is that the problem is that you’re trying to load a local file. Try serving your script on a local or remote webserver and see if that fixes the problem. (If you have Python installed, you can go to the directory in question and run
python -m SimpleHTTPServer 8000, then go to http://localhost:8000/ in your browser).