In my Asp.Net MVC2 app, the JS error ‘jQuery is not defined’ comes up sometimes (1 out of 20 times).
Because of this unsymmetrical trend, I’m unable to point out the problem.
Any suggestions?
Thanks.
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.
Use Firefox with Firebug installed. When you get the error use the DOM inspector to make sure you’re loading jQuery before any plugins, and that jQuery it not 404’ing (use the net panel.)
Note that you can’t view source at this point because when you view source you’re making an additional HTTP request to the server.
You can also download a proxy like Charles (free to try) and enable logging. Refresh your page 20 times, stopping when you see the JS error. Check Charles and view the source of the HTML document. You can also compare the markup this time to the markup of a previous successful request. The problem can either be:
Whatever the case, the above steps should help find the problem.