开发者

jQuery - error updating JScript Intellisense

i have searched similar posts on google & stackoverflow to no use. Basically, what i have is a new aspx page. I have开发者_如何学Python the following files referenced in the head section.

jquery-ui-1.7.2.custom.css
jquery-1.3.2.min.js
jquery-ui-1.7.2.custom.min.js

Theme:smoothness

UI Version: 1.7.2 for jQuery 1.3.2

I have nothing else going on in the page but still get the error 'error updating JScript Intellisense. I am using VS2008 SP1. Any ideas?

TIA

ps: VS shows intellisense if i refer to 1.4.1.js & 1.4.1-vsdoc.js


Phew! Issue Resolved. Finally found a solution here.
Step 6 did it for me.

Update: the above link is now dead! I think the error is "Error updating JScript IntelliSense: 'div.childNodes' is null or not an object" & i think step 6 refers to fixing this error in one of jscript files.


There's a hotfix for this if you include the -vsdoc.js file as well for 1.3.2

You can find the hotfix here and the -vsdoc.js for 1.3.2 here

Visual studio doesn't like the 1.3.2 source, but if you include that intellisense file as jquery-1.3.2.min-vsdoc.js in your case, it'll ignore the actual jquery-1.3.2.min.js file it chokes on.

Once you do this, hit Ctrl + Shift + J to update intellisense.


I kept on getting these annoying JScript IntelliSense errors every time I was editing a particular .aspx file. I couldn't disable IntelliSense, and I couldn't get the -vsdoc.js fix to work, so what I ended up doing was wrapping the target of the src attributes in inline asp tags, like so:

before:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>

after:

<script type="text/javascript" src="<%="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"%>"></script>

Hope that helps!

P.S. I was using Visual Studio Web Developer - Express Edition with SP1.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜