django jquery ready event not firing -
I have a project in Django, but for some reason basic jQuery is not working.
& lt; Html & gt; & Lt; Top & gt; & Lt; Link href = "/ site_media / css / poll.css" rel = "stylesheet" type = "text / css" & gt; & Lt; Script type = "text / javascript" src = "/ site_media / js / jquery-1.3.2.js" /> & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {warning ('hi there');}); & Lt; / Script & gt; & Lt; / Head & gt;
etc ...
There is no firing incident created for any reason Jquery and CSS are definitely present (Firebug confirms this for me) on page There are no JavaScript errors.
Am I missing something completely clear, or there is something subtle in Django so that the configuration needs to work with jQuery.
Edit : In fact, Jquery does not work after importing any JavaScript! A
& lt; Script type = "text / javascript" & gt; Warning ("Hi"); & Lt; / Script & gt; P> this missing & lt; / Script & gt;
may be due to the end tag example for adding jQuery scripts: & lt; Script type = "text / javascript" src = "/ site_media / js / jquery-1.3.2.js" & gt; & Lt; / Script & gt; According to the note in the HTML specification for SCRIPT
element, both start and end tag is required.
Comments
Post a Comment