[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-15 Thread Jonathan Sharp
A URL would be helpful for debugging. -js On 10/15/07, airslim <[EMAIL PROTECTED]> wrote: > > > Actually it does make sense... but its not working, for my case : > var jq = jQuery.noConflict(true); > > throws an arror with firebug -> "jQuery is not a constructor". > >

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-15 Thread airslim
Actually it does make sense... but its not working, for my case : var jq = jQuery.noConflict(true); throws an arror with firebug -> "jQuery is not a constructor".

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-15 Thread George
I'll try to be a bit more clear. There's a couple of simple rules. Whenever you include jQuery, it will take anything already in the $ and jQuery variables and back them up so it can install itself in the $ and jQuery variables. When you call noConflict(true), jQuery (the version that is in the $

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-13 Thread watermelongunn
Any chance someone could elaborate on what George explained? It sort of makes sense to me, but I'm still a bit lost. What would I do if a page I'm working on already has Prototype and JQuery 1.1.4 (loaded with noConflict()), and I wanted to then add JQuery 1.2.1 and some plugins? Is that even p

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-09 Thread George
After looking at the code it seems quite straight-forward. Someone correct me if I've got the wrong end of the stick. Summary: The first version you include will get reinstated, the second version getting blown away. How it works: When you include jQuery, it makes a copy of the window.$ and wind

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-09 Thread airslim
I have exactly the same problem as Glen, that leads me to ask the same question, which is still unanswered: How does it know which jQuery to blow away and which to leave alone ?

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-03 Thread Glen Lipka
We tried that. But that seemed to undefine the 1.1 jQuery too, which was on the page. So none of the existing page jQuery stuff using $ worked anymore. We had the line at the top of our script page. How does it know which jQuery to blow away and which to leave alone? Glen On 10/3/07, John Resi

[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-03 Thread John Resig
Yep, you can do .noConflict(true) which completely blows away both $ and jQuery. So, in your case, you would do: var veryjQuery = jQuery.noConflict(true); --John On 10/4/07, Glen Lipka <[EMAIL PROTECTED]> wrote: > We are making a jQuery+stuff script that will go on lots of random pages > with