Monday, November 2, 2009

[jQuery] $ is not defined


 

I'm having trouble running a simple JQuery script.  When I run the script using a local version of the jquery-1.3.2.js file, I get a "$ is not defined" error.


If I do the same thing using a version on the google.code server it works just fine.

 

I'm sure that I'm referencing the correct location of the local jquery-1.3.2.js file because if I copy the directory structure to another computer it works just fine.

 

The OS is Windows XP.  Any ideas?

 

 

This doesn't work:

<script type="text/javascript"src="../jquery-1.3.2.js"></script>

 

This works:

 

<scriptsrc="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"type="text/javascript"></script>

 

Thanks,

 

Al




No comments: