Hi Everyone,
I am trying to use quite a few Tools scripts on my website, but I use a social network script that uses MooTools and quite a few other JS as well.. I've included tools into my header AFTER all the other scripts, because if I include it before them, TOOLS doesnt work at all..
So when I include tools after the rest I seem to be running into errors with menu's not displaying and MooTools tooltips not showing up. So I need to modify my TOOLS JS so it won't cause conflicts.. Now I've looked on the internet and saw that I need to include:
In my JS to change the $ into J and won't cause problems with other JS.. So the next step I did was to replace all the "$" for "J"..
But do I need to do this for the entire Tools script? Do I need to edit jquery.tools.js and do the replacements, or can I just edit the javascript on the page itself like this:
I tried the above, and the Tools javascript keeps working, but it doesnt solve the conflict issues on my site.. I am a total n00b in javascript so some help would be great!
Thanks in advance :)
I am trying to use quite a few Tools scripts on my website, but I use a social network script that uses MooTools and quite a few other JS as well.. I've included tools into my header AFTER all the other scripts, because if I include it before them, TOOLS doesnt work at all..
So when I include tools after the rest I seem to be running into errors with menu's not displaying and MooTools tooltips not showing up. So I need to modify my TOOLS JS so it won't cause conflicts.. Now I've looked on the internet and saw that I need to include:
var J = jQuery.noConflict();
In my JS to change the $ into J and won't cause problems with other JS.. So the next step I did was to replace all the "$" for "J"..
But do I need to do this for the entire Tools script? Do I need to edit jquery.tools.js and do the replacements, or can I just edit the javascript on the page itself like this:
// perform JavaScript after the document is scriptable.
var J = jQuery.noConflict();
J(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
J("ul.tabs").tabs("div.panes > div");
});
I tried the above, and the Tools javascript keeps working, but it doesnt solve the conflict issues on my site.. I am a total n00b in javascript so some help would be great!
Thanks in advance :)