Tutorial :Working with multiple jQuery libraries and Prototype


Ok, i saw some other posts about this sort of thing, but not exactly related. This is not what I want to do, but need to do unfortunately.

We have in this order right now
Prototype 1.6
jQuery 1.2.6 with noConflict on jQuery with j

I need to add jQuery 1.4.2 in that mix as well. It will always be the last one loaded. No option.

Is there anyway i can do this currently?

I know this is not good, yada, yada, but it has to be done for now unfortunately.


Not sure I understand how the order works unless of you have a loop waiting for the load, because I think the script includes are asynchronous.

You can have Prototype and jquery coexit if in jquery you safely wrap your jquery code in a:

(function($){       //jQuery goodness    })(jQuery);   


I'm guessing the answers to this question will help you. It seems to be a similar situation.

Is it possible to load multiple different version of jQuery on the same page?


The order they are on the page is how they will be loaded, however making sure they don't conflict and demolish eachother is a completely different ballgame.

Whatever situation is causing this, you might want to just start from scratch.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »