Closed (cannot reproduce)
Project:
Image Assist
Version:
6.x-2.0-alpha4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Dec 2010 at 21:58 UTC
Updated:
25 Dec 2018 at 17:13 UTC
Jump to comment: Most recent
Comments
Comment #1
sunThis means that jQuery is loaded after Image Assist, which should not happen.
Comment #2
nicholasthompsonI'm getting this same error with a custom script in my theme...
Comment #3
nicholasthompsonSo - turns out JQuery in Drupal 7 has changed to allow for other libraries to function without conflicts. See: http://drupal.org/node/756722
Comment #4
philosurfer commentedIt would have been nice to know this sooner!!!
I was having to use "jQuery()" instead of "$()"
and going nuts because of it.... ;-P
for those of you that did not read past this thread onto the link...
to use jQuery in D7 you need to wrap your code in this:
Comment #5
samerali commentedThanks philosurfer this hepled me as well and saved me alot of time.
Comment #6
jnthnmyrs commentedWonderful! Thank you nicholasThompson and philosurfer! I am no longer confused. :)
Comment #7
philosurfer commentedSeeing as this is an old thread....
I highly recommend reading this for understanding JavaScript and Drupal. Drupal. behaviors is very powerful
http://drupal.org/node/756722
Comment #8
lokinder.chauhan commentedThanks man you saved me
Comment #9
hilrap commentedHow would you wrap
?
Comment #10
phuocdv commentedThanks
Comment #4philosurfer .
Comment #11
Bob_robinson commentedinstead of $ , u need to use another symbol to prevent confliction between $ and Other $ signs
use this code: var jq = jQuery.noConflict(true);