jQuery and ASP.NET

February 10, 2010

Visual Studio Intellisense (vsdoc) for jQuery 1.4.1 now available




Visual Studio Intellisense for jQuery 1.4.1 is now available and can be downloaded from the jQuery site

image

I have downloaded both the jQuery 1.4.1 library and the Visual Studio Intellisense documentation for jQuery 1.4.1 and kept it in the Scripts folder.

image

Here’s how I am using the file in a sample application:

image

Observe how the documentation appears in Visual Studio 2008 after I typed $(

Note: You have to only reference the jQuery 1.4.x file in your code and do not have to reference the -vsdoc.js file. Just keep both these files in the same folder. Visual Studio automatically detects a -vsdoc.js file along with your jQuery library and parses the intellisense file instead.



'Like' us on our FaceBook page if you find this blog useful. Thanks!


Did you like this post?
kick it on DotNetKicks.com Save on Delicious
subscribe via rss subscribe via e-mail
print this post follow me on twitter


About The Author

Suprotim Agarwal, ASP.NET Architecture MVP works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal

comments

4 Responses to "Visual Studio Intellisense (vsdoc) for jQuery 1.4.1 now available"
  1. Bijoy Matu said...
    February 10, 2010 7:33 PM

    Thank you for this post. I must be doing something wrong. When I follow instructions, I get error in visual studio "Error updating JScript IntelliSense"

    can you help?

  2. Suprotim Agarwal said...
    February 11, 2010 3:21 AM

    Bijoy: Since I have been asked this question a couple of times on forums, I thought of dedicating a post to it. Here it is:

    Visual Studio 2008 jQuery Intellisense - Error updating JScript IntelliSense: Object doesn't support this property

  3. Googled said...
    October 5, 2010 11:10 PM

    You need to install this VS 2008 hotfix to make the intellisense work:

    http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

  4. Scott said...
    February 11, 2011 12:48 AM

    Nowadays if anyone is reading there's a better way of doing this via CND's check out my article http://scottreed.eu/jquery/jquery-vsdoc-support/

 

Copyright © 2009-2011 All Rights Reserved for DevCurry.com by Suprotim Agarwal | Terms and Conditions