Upgraded jquery to 1.4.2. Now project doesn't find jquery
I have a C# ASP.NET MVC application which has been using jquery 1.3.2 in VS2008 environment.
I decided to upgrade to 1.4.2 and added the file to my project. Changed the reference in my masterpage header to the new version. But now nothing works, it's like it can't find the jquery library.
What cou开发者_开发问答ld be wrong?
Have you made sure that page caching is switched off? Check that the links are being rendered correctly. I would recommend loading the page in Firefox and inspecting with Firebug to see what the script links are and whether the script files are being found.
How about fetching latest JQuery library from google code?
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4.2"); // version here
google.setOnLoadCallback(function() {
// Place init code here instead of $(document).ready()
});
</script>
The problem was an extra } in a separate .js file that caused nothing to load.
精彩评论