Click here to Skip to main content
15,896,344 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
In one of my project, I got such an error: microsoft jscript runtime error 'jquery' is undefined by hitting the code:
JavaScript
$jQuery.support.cors = true;

Actually, I did have the reference:
JavaScript
<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? Thanks.
Posted

1 solution

$ is an alias for jQuery, so you would just use
JavaScript
$.support.cors = true;
 
Share this answer
 
Comments
[no name] 22-Jan-14 13:25pm    
Perfect. Thanks.
Maciej Los 22-Jan-14 13:37pm    
+5!
Sergey Alexandrovich Kryukov 22-Jan-14 22:03pm    
Ha-ha, $jQuery — good catch, a 5.
—SA
Sagar Tajpara 24-Feb-16 5:17am    
I have same problem so where i wan't to write put this line "$.support.cors=true"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900