In my template I am linking jquery :
<script type="text/javascript" src="jquery/jquery.js"></script>
And then
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
alert("Hello from jQuery");
});
</script>
But I always get nothing..
using ubuntu 9.10. Thanks for your help in advance.
Hello,
I am totally helpless. I am trying to use JQuery in my django
templates, but I always get in firebug this: $ not defined.
In my template I am linking jquery :
<script type="text/javascript" src="jquery/jquery.js"></script>
But I always get nothing..
using ubuntu 9.10. Thanks for your help in advance.
> Hello,
> I am totally helpless. I am trying to use JQuery in my django
> templates, but I always get in firebug this: $ not defined.
Did you try with 'jQuery' instead of '$' ?
If jQuery.no_conflict() was called, the $ variable isn't defined.
I always call no_conflict() to prevent any namespace collision with other JS Frameworks, especially with re-usable or partial code.
--
Romain Gaches
rom...@ssji.net
<script type="text/javascript" src="http://google.com/jsapi" />
<script type="text/javascript">
google.load('jquery','1.3.2');
</script>