But there is a problem, when the structure is the following:
first plugin:
-load jquery (<script src...)
-load a script that uses jquery only
second plugin:
-load jquery
-load jquery ui
-load a script that would like to use jquery with ui after the whole
page loaded
third plugin:
-load jquery
-load a script that uses jquery only

Can I load somehow jquery only when it is not loaded?

On Dec 21, 12:03 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> Sure, just include jQuery UI before including the second jQuery, or after
> the noConflict call.
>
> - Richard
>
> On Sun, Dec 20, 2009 at 7:11 AM, Harsányi János <hajani...@gmail.com> wrote:
> > This sounds great :)
> > One more problem:
> > Can I extend the first jQuery with jQuery UI?
>
> > On Dec 19, 9:31 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> > > After the second one is loaded you can get back to the first one using
> > > noConflict:
>
> > >http://docs.jquery.com/Core/jQuery.noConflict
>
> > > - Richard
>
> > > On Fri, Dec 18, 2009 at 11:13 AM, Harsányi János <hajani...@gmail.com
> > >wrote:
>
> > > > I have two e107 plug ins which are using jQuery.
> > > > The first one uses jQuery UI too.
> > > > The problem is that the second plug in re-defines the jQuery without
> > > > the UI extension, and the first plug in is not able to work properly.
> > > > Is there any way to load jQuery only if it has not been added yet?
> > > > (I have tried typeof(jQuery) but it is throwing an error: "jQuery is
> > > > not defined".)

Reply via email to