On Sun, Feb 28, 2010 at 5:39 PM, Alexis Selves <petr.pej...@gmail.com>wrote:

> Hello,
> I am totally helpless. I am trying to use JQuery in my django
> templates, but I always get in firebug this: $ not defined.
>

Check with Firebug if the jquery script has been successfully loaded (using
either the CSS or Net tabs)


> In my template I am linking jquery :
> <script type="text/javascript" src="jquery/jquery.js"></script>
>

Are you sure this file is being correctly loaded in the browser?  Is this
line showing up in the generated HTML?


>
> But  I always get nothing..
> using ubuntu 9.10. Thanks for your help in advance.
>
>
You don't get nothing, you get something that's just not what you expect.
It's much easier to help you debug if you tell us what you do get, and what
steps you've taken to eliminate possibly sources of errors.

For example, in you situation I would check (and report on):

- whether the browser can load the page
- whether the <link> tag shows up in the browser (use "View Source" or
Firebug)
- whether you can download the JQuery file manually at the location in the
link
- whether the JQuery really was downloaded in the page (check using Firebug)

If all those tests were passed successfully then you've got a very different
problem than if e.g. the browser can't load the page.

Hope this helps.

Malcolm

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to