JQuery undefined

i got "jQuery" is undefined error when viewing the page in IE 6, but it works with all

browsers (including IE 7 ). can anyone help me.

+2


source to share


3 answers


Considering that you did link to the internal IP address, I can give you a quick answer (let's say you have an internet connection on the page you are facing)

change your script call to:



<script 
     type="text/javascript"          
     src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
</script>

      

+7


source


To solve this problem, put your JQuery library at the top of all other Javascript libraries. If you are using other libraries like JQGrid or JQuery UI that uses JQuery. then it should look like this.



 <script src="~/Scripts/jquery-1.7.2.min.js"></script> /* First your JQuery lib */
 <script src="~/Scripts/jquery-ui-1.8.24.js"></script> /* Then your JQuery UI or JQGrid */

      

+1


source


Obviously, you also need to change this:

<script type="text/javascript" src="http://192.168.1.100/jquery.cycle.all.js"></script>
<script language="javascript" src="http://192.168.1.100/carousel192.js"></script>

      

into this (also copy these two files into a folder called js in the same directory where the html file is):

<script type="text/javascript" src="js/jquery.cycle.all.js"></script>
<script language="javascript" src="js/carousel192.js"></script>

      

And don't use local IP addresses!

0


source







All Articles