[jQuery] Re: Possible jQuery versions conflict
> I am very interested in the answer to this question. Is there any > working solution to this problem (is this problem ever exists) ? Here is an example of how you can embed a widget/gadget with its own jQuery version on a page, while still respecting the host environment: http://jquery.malsup.com/widget/demo.html Mike
[jQuery] Re: Possible jQuery versions conflict
Just use jQuery.noConflict(true) to rename the jQuery namespace to whatever you want. http://docs.jquery.com/Core/jQuery.noConflict#extreme var test = jQuery.noConflict(true); Now you can use test(selector) instead of $(selector) or jQuery(selector) -- Brandon Aaron On Thu, Sep 4, 2008 at 3:09 PM, Marcin <[EMAIL PROTECTED]> wrote: > > I am very interested in the answer to this question. Is there any > working solution to this problem (is this problem ever exists) ? > > Best regards, > Marcin > > On Jul 31 2007, 12:49 pm, Sagari <[EMAIL PROTECTED]> wrote: > > Greetings, > > > > The task: to insert a DOM-style JS code usingjQueryinto a thrid- > > party page. Example: code snippets used to generate AdSense blocks. > > > > This will require a user to include ajQuerysource (directly or > > indirectly - either the user includes it, or my code snippet does). > > > > The problem: if the page already usesjQuery, the problem looks > > inevitable when twojQuerylibraries, most probably of differentversions, > are loaded. > > > > What is the simplest way to loadjQueryin such a case without causing > > JS errors? > > > > Thank you. >
[jQuery] Re: Possible jQuery versions conflict
I am very interested in the answer to this question. Is there any working solution to this problem (is this problem ever exists) ? Best regards, Marcin On Jul 31 2007, 12:49 pm, Sagari <[EMAIL PROTECTED]> wrote: > Greetings, > > The task: to insert a DOM-style JS code usingjQueryinto a thrid- > party page. Example: code snippets used to generate AdSense blocks. > > This will require a user to include ajQuerysource (directly or > indirectly - either the user includes it, or my code snippet does). > > The problem: if the page already usesjQuery, the problem looks > inevitable when twojQuerylibraries, most probably of differentversions, are > loaded. > > What is the simplest way to loadjQueryin such a case without causing > JS errors? > > Thank you.