JQuery intellisense support for Visual Studio 2008

I have Visual Studio 2008 Pro. SP1 and fix

KB958502 - Support for the JScript Editor for the "-vsdoc.js" IntelliSense Document. Files

but there is still no Intellisense support in VS2008.

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

enter image description here

+4
source share
4 answers

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

+1
source

I am NOT sure, but should not have a tag should have only src or inline content, but not both?

Your code has both of them.
Maybe this will work:

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

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

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

Download and try adding the vsdoc file:

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

You are referencing a jQuery script file and at the same time trying to write code inside this block of script code. I think this is impossible. At least I have never tried this way.

Do this 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> 
+2
source

Do you have -vsdoc.js for 1.6.1? I did not think 1.4.1 is available, which is available here:

http://docs.jquery.com/Downloading_jQuery

Thus, VS presumably will not find it automatically if you refer to 1.6.1. You can rename 1.4.1 to 1.6.1 and make sure it is on the same path.

Alternatively, you can directly link to vsdoc using // link tags, as described in an article by Scott Gu.

+1
source

All Articles