Re: jquery in included html file

2014-05-05 Thread Andreas Bloch
here is how the files are structured... *base.html* ... {% block nav %}{% endblock %} {% block content %}{% endblock %} *template.html* {% extends "base.html" %} {% block nav %} {% include 'nav.html' %} {% endblock %} *// works* $(fun

Re: jquery in included html file

2014-05-05 Thread Hannu Krosing
On 05/05/2014 09:30 AM, Andreas Bloch wrote: > How do you access (or include) jquery in a file, which is included? > I'm getting a "Uncaught ReferenceError: $ is not defined" when trying > to use jquery in the included file... Is jquery there when you look at the page source ? > > In my template, t

Re: jquery in included html file

2014-05-05 Thread Shai Efrati
How did you use it in the nav.html file? Can you please write it here, maybe it's a reference issue. On Monday, May 5, 2014, Andreas Bloch wrote: > How do you access (or include) jquery in a file, which is included? > I'm getting a "Uncaught ReferenceError: $ is not defined" when trying to > use

jquery in included html file

2014-05-05 Thread Andreas Bloch
How do you access (or include) jquery in a file, which is included? I'm getting a "Uncaught ReferenceError: $ is not defined" when trying to use jquery in the included file... In my template, that extends base.html, I am able to use jquery but not the file I'm including with {% include 'nav.html