Submitted by John Wilkins (not verified) on Wed, 2007-04-11 20:00.

The jQuery documentation says that noConflict() does not define what is returned, so I'm not sure you need the var JQ = part of your javascript statement. i.e. just append to the jquery.pack.js file the following line:
jQuery.noConflict()

I encourage readers to take a look at the docs of this function: http://docs.jquery.com/Core#.24.noConflict.28.29

I used this method on a client's site 2 weeks ago, but didn't get a chance to write it up. Good tip!

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
More information about formatting options

Hosted By Dreamhost.com


Did you know?

You don't need to register at WWDD to post comments.

Isn't it annoying when you want to comment on an article, but don't want to go through the hassle of creating yet-another-user account at yet-another-website?

Feel free to comment anonymously, or log in with your username@drupal.org account.

We won't mind a bit.