Microsoft JScript runtime error: 'jQuery' is undefined

Odpovědět Microsoft JScript runtime error: 'jQuery' is undefined

  • Sunday, May 13, 2012 9:17 AM
     
     

    I am getting this error on a js file but the refere should be right. The files are in the same folder

    /// <reference path="jquery-1.7.2.js" />


     
    jQuery(document).mousemove(mouseMove);
    jQuery(document).mouseup(mouseUp);

All Replies

  • Sunday, May 13, 2012 2:02 PM
     
     Answered

    This error usually shows up when the reference to the jQuery library is missing. 

    Verify if the file path is correct. One way to check this is by trying to access that file as a URL. For example, if your application URL is http://localhost/myapp check if http://localhost/myapp/jquery-1.7.2.js loads fine.


    M.V.'Anil' Radhakrishna
    Web Development Tips, Tricks & Trivia

    • Marked As Answer by marck68 Monday, May 14, 2012 3:35 PM
    •