Integration of MooTools and jQuery

I am using the code MooTools (1.11) and jQuery (1.2.6). It works great when it's separate. While I integrate Firefox, it throws:

(document) .ready () {} is not a function.

Is there something wrong with my concept? What can I do to fix this?

+3
source share
5 answers
jQuery.noConflict(); 
jQuery(function($){ 

   $works with jQuery here. 
});
$ Works with MooTools here. 

However, I would say, I offer you the MooTools ditch.

, jQuery , , MooTools ( ), , jQuery , , MooTools, .

, MooTools 50 , jQuery - 25 ( , ). .

, , JavaScript, , -, . jQuery, , MooTools, , , MooTools, .

+4

jQuery MooTools '$' . jQuery , , - :

jQuery(document).ready(function(){...});

$(document).ready(function(){...});

jQuery JavaScript . - jQuery .

+1

sanchothefat, , . Javascript, , , 150-200 JavaScript , , . , MooTools, jQuery . , , , , , , .

+1

. noConlict jQuery. , ...

0

MooTools for jQuery: http://moo4q.com/

jQuery <3 DOM jQuery is awesome, but the scope is (usually) DOM [manipulation]
MooTools <3 Objects MooTools work with [javascript] huckleberry pie objects.

0
source

Source: https://habr.com/ru/post/1702407/


All Articles