javascript - jQuery Loads in Chrome but Not Firefox, why? -
i'm using django , have html file, line in head
tag:
<script type="text/javascript" src="/path/to/jquery.js"></script>
this works fine in chrome, seems have no effect in firefox 3.6.18. (when type in $
or jquery
in firefox console, error, whereas chrome shows correctly.) rest of scripts can't load because of this.
i tried strace
, , seems file is, in fact, loaded.
what causing this?
more info:
i can't post lot of html, relevant parts:
my html file (django templates):
{% extends "my_base.html" %} {% load stuff %} {% block head %} {{ block.super }} <script type="text/javascript" src="/media/jquery_listbox/js/jquery-min.js"></script> <script type="text/javascript" src="/media/jquery_listbox/js/ui.core-min.js"></script> <script type="text/javascript" src="/media/jquery_listbox/js/ui.dropdownchecklist-min.js"></script> <link rel="stylesheet" type="text/css" href="/media/jquery_listbox/css/ui.dropdownchecklist.css" /> {% endblock %}
my_base.html
:
<!doctype html public "-//w3c//dtd html 4.01//en"> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="default.css"/> {% block head %}{% endblock %} </head> ... </html>
it's hard tell without seeing rest of html. firebug installed, can check net tab make sure jquery file requested , returned correctly in firefox. or replace src
google's hosted jquery https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js
- if works know it's location problem, not code problem.
Comments
Post a Comment