You could check whether or not $ is a function. If jQuery has been included, typeof($) should return the string "function" otherwise it will return "undefined"
On Feb 2, 11:32 am, Sébastien Richer <sebastienric...@gmail.com> wrote: > Hi, > > I tried to search around for this but have'nt had any luck, so I'll > ask here :) > > I use jquery.js on most of my sites. And most pages have it included > in the <head> part. But not all of my pages, some are very old. > > Along with jquery.js, most pages also have jquery.flash.js. > > Now I recently needed to add something to my footer (which is included > on every page) and I need to user jquery.cookie.js, and so jquery.js. > > Since not "all" my pages have jquery.js, I included in my footer both > jquery.js and jquery.cookie.js. > > The problem is that when I include jquery.js a second time, the > initial "instance" (?) seams to be forgotten and now my > jquery.flash.js seams to have stopped working. I get an unresolved > for flash(). > > Anyone had a similar issue ? (If I'm not mistaking this is an issue > only with the latest versions of jquery.js) > > Any workarounds ? > > My backup plan will be to go around "all" of my pages and change the > way I call .js files. I'll probably create a javascript.jsp file and > include that in all my pages and control it from there. bleh... find > and replace... > > Thanks for the help !