开发者

No Jquery intellisense Support for Visual Studio 2008

I have Visual Studio 2008 Pro. SP1 and Hotfix

开发者_运维技巧

KB958502 - JScript Editor support for “-vsdoc.js” IntelliSense doc. files

installed, but still no intellisense Support is available in VS2008.

<script type="text/javascript" src="Scripts/jquery-1.6.1.js">
$("#TextBox1").
</script>

No Jquery intellisense Support for Visual Studio 2008


I'm NOT sure but shouldn't a tag should have EITHER a 'src' or inline content but not both?

Your code has them both.
Maybe this would work:

<script type="text/javascript" src="Scripts/jquery-1.6.1.js"></script>

<script type="text/javascript">
$("#TextBox1").
</script>


jQuery Intellisense in VS 2008 - Take a look at the comments...

Make sure that this path is correct: src="Scripts/jquery-1.6.1.js"

Download and try adding the vsdoc file too:

<script type="text/javascript" src="Scripts/jquery-1.6.1-vsdoc.js" />

You're referencing the jQuery script file and at the same time you're trying to write code within that script code block. This isn't possible I think. I at least have never tried this way.

Do this way instead (this should work):

<script type="text/javascript" src="../../Scripts/jquery-1.6.1.js" />
<script type="text/javascript" src="../../Scripts/jquery-1.6.1-vsdoc.js" />

<script type="text/javascript">

$("#TextBox1").

</script>


Do you have a -vsdoc.js for 1.6.1? I didn't think one was available past 1.4.1 which is available here:

http://docs.jquery.com/Downloading_jQuery

So VS presumably won't find it automatically if you're referencing 1.6.1. You could rename the 1.4.1 to 1.6.1 and make sure it's in the same path.

Alternatively you can reference the vsdoc directly using the // reference tags, as explained in the Scott Gu article.


You should use jquery-1.4.1.js , jquery-1.4.1.min.js and jquery-1.4.1-vsdoc insteated of version 1.6.1 in vs2008

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜