jQuery namespace woes - calling third-party scripts

17 views
Skip to first unread message

Andre Terra

unread,
Apr 4, 2011, 5:21:56 PM4/4/11
to django...@googlegroups.com
Hello.

I'm trying to run the supersleight jQuery plugin (http://allinthehead.com/retro/338/supersleight-jquery-plugin) for fixing PNG transparency in IE6 (this is a corporate intranet project, so I must support it).

However, I'm having trouble calling the script because it's telling me jQuery is undefined. Could somebody please paste me an example of how I should setup my project's main script (and references to both that and the third-party files) so that either jQuery or $ will work anywhere they're used?



TLDR; I just to call this 'supersleight' plugin on document ready:

django.jQuery('body').supersleight();

I know, it's incredibly simple, but I can't get it to work.


I thank you in advance for the help.


Sincerely,
André Terra (airstrike)

mcniac

unread,
Apr 5, 2011, 1:26:46 AM4/5/11
to Django users
Hi!

are you calling that script from the window's onload event? if not
jquery might not be ready yet. also you should load that inside a IE
conditional comment

Cheers
Esteban

Casey Greene

unread,
Apr 5, 2011, 9:11:38 AM4/5/11
to django...@googlegroups.com

Also -- you are much more likely to quickly get help for a jQuery issue
with a list/forum related to jQuery such as the jQuery forum:
http://forum.jquery.com/

Some of us use jQuery but if we're reading a django list we're probably
not actively thinking about it.

Casey

>> Andr� Terra (airstrike)
>

Reply all
Reply to author
Forward
0 new messages