Re: jQuery namespace woes - calling third-party scripts

2011-04-05 Thread Casey Greene


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

On 04/05/2011 01:26 AM, mcniac wrote:

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

On Apr 4, 6:21 pm, Andre Terra  wrote:

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)




--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: jQuery namespace woes - calling third-party scripts

2011-04-04 Thread mcniac
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

On Apr 4, 6:21 pm, Andre Terra  wrote:
> 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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



jQuery namespace woes - calling third-party scripts

2011-04-04 Thread Andre Terra
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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.