Select to view content in your preferred language

Error:  microsoft jscript runtime error 'jquery' is undefined

1078
4
Jump to solution
01-22-2014 08:12 AM
ShaningYu
Honored Contributor
In one of my project, I got such an error: microsoft jscript runtime error 'jquery' is undefined by hitting the code:
  $jQuery.support.cors = true;
Actually, I did have the reference:
<script src="http://code.jquery.com/jquery-1.10.2.js"  type="text/javascript" />
In another project, I used the same code and it run fine.
What's the possible reason for it?  Should I have a dojo.require("") for the jquery?  If yes, what string should be put into the dojo.require()?  Thanks.
0 Kudos
1 Solution

Accepted Solutions
ShaningYu
Honored Contributor
Solved by using
$.support.cors = true;
since $ is an alias for jQuery.  Thank.

View solution in original post

0 Kudos
4 Replies
JonathanUihlein
Esri Regular Contributor
This is the wrong forum for this type of question as this doesn't concern the Esri JSAPI.
It's more of a general DOJO or jQuery question.

Using Google, I found this answer:

http://stackoverflow.com/questions/2850314/jquery-dojo-how-do-i-use-jquery-with-dojo-toolkit
0 Kudos
ShaningYu
Honored Contributor
Solved by using
$.support.cors = true;
since $ is an alias for jQuery.  Thank.
0 Kudos
JonathanUihlein
Esri Regular Contributor
In the future, if you are having jQuery issues, you may want to try asking your question here:

http://gis.stackexchange.com/
or
http://stackoverflow.com/

Glad to see you figured it out!
0 Kudos
ShaningYu
Honored Contributor
Jon:  Thanks.  will follow your direction.  I usually use http://www.codeproject.com/Questions/.  It is a very good site.
0 Kudos