JQuery Error: Uncaught TypeError: Object #<HTMLDocument> has no method 'ready'
Apparently you are using both jQuery and Mootools and both of them do use $
as an alias to a core function. Probably the $
function which is generating this error is the Mootools function. I'd suggest you to try to write your jQuery code using jQuery
instead of $
so you can confirm my point is right or not.
Good luck!
Yup - I believe that's exactly the problem. jQuery and mooTools fight over the use of the $ notation.
You're on the right track with using
try{
jQuery.noConflict();
} catch(e){};
But after you use that, in order to use jQuery functionality, you have to call it jQuery(...) instead of $(...). Example:
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
jQuery("div").hide();
});
Here's a link to the jQuery docs regarding this: http://docs.jquery.com/Using_jQuery_with_Other_Libraries