Amit
Amit

Reputation: 22086

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>

enter image description here

Upvotes: 4

Views: 793

Answers (4)

Poni
Poni

Reputation: 11327

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>

Upvotes: 5

Amit
Amit

Reputation: 22086

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

Upvotes: 1

Leniel Maccaferri
Leniel Maccaferri

Reputation: 102448

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>

Upvotes: 2

James Gaunt
James Gaunt

Reputation: 14793

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.

Upvotes: 1

Related Questions