As I understand this , you should be able to (with KB958502 ) get Intellisense for jQuery by simply specifying a script (as long as the -vsdoc version exists).
We would like to use the CDN to distribute this, but just add:
<script language="javascript" type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.js"></script>
Gives a vague warning
Warning 1 Error updating JScript IntelliSense: C: ... \ Temporary Internet Files \ Content.IE5 \ 4U5FWPZF \ jquery-1.7.1-fds90 1 ..js: the object does not support this property or @ 1352: 1 method c: \ Projects ... \ MyFile.aspx
Under the assumption, I assume that it "has sulk" because the file name in the cache does not have the form jquery-1.7.1-vsdoc.js, especially since the error remains unchanged even if I go all the way with:
<script language="javascript" type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.js"></script> <script language="javascript" type="text/javascript"> // This is for jQuery intelisense: /// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1-vsdoc.js"/> $(function() { // My other code... }); </script>
This still does not work.
Is this just the case when vsdoc Intellisense doesn't work with remotely hosted files?
source share