Jquery – Error updating JScript IntelliSense with Google Apis hosted jQuery

jqueryvisual studio

I reference jQuery in my application via: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js.

This generates an error with vs.net: "Error updating JScript IntelliSense: c:…jquery.min-fds90[1]..js: Object doesn't support this property or method @18:9345.

Other than putting a local copy of the javascript file on my dev box, is there a way to fix this?

Btw, this occurs with VS.Net 2008 SP1 with this hotfix: http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx

Best Answer

I finally found the answer to this question:

Basically, add the following to above your jQuery include:

<% /* %><script type="text/javascript" src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2-vsdoc.js"></script><% */ %>

Via: http://biasecurities.com/blog/2009/get-jquery-intellisense-in-vs-net-when-using-a-cdn/