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

I had recently posted about the jQuery 1.4.1 Intellisense support for Visual Studio. A user commented back saying that intellisense did not work for him. He encountered an error in Visual Studio that said “Error updating JScript IntelliSense”

If you are trying out the jQuery intellisense for Visual Studio and encounter the error “Error updating JScript IntelliSense: Object doesn't support this property”, then make sure that you've installed the hotfix that adds JScript Editor support for “-vsdoc.js” IntelliSense documentation files. You can read more about this hotfix here. Once you have applied this hotfix, you should be able to use intellisense for jQuery 1.4.1 as shown below. Just type $( and the check the documentation appear.



Note: Remember to install Visual Studio 2008 Service Pack 1 before applying the hotfix.

Will you give this article a +1 ? Thanks in advance

About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) 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 is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal


dunni said...

If you also reference jQuery UI or are using some other jQuery plugin you may notice that you still get errors, maybe something along the lines of "'childNodes' is null or not an object".

Try adding empty -vsdoc files for each of the jQuery files referenced in your project. I think these need to be in the same folder as the referenced file but have not investigated this, nor have I determined whether every plugin requires a -vsdoc.

So for example, if you are using the jQuery.corner.js plugin try adding a blank file named jQuery.corner-vsdoc.js.

Hit Ctrl+Shift+J to force an intelliSense update.

This is assuming of course that the plugin does not come with a ready made -vsdoc.

I hope this helps those are scratching their heads after following the described steps and not getting anywhere.

Suprotim Agarwal said...

Thanks dunni. That looks like a useful tip!

Lavanya said...

It really worked and helped me a lot.......I have been suruggling with this from 4 months. Finalli its been solved.......


Chip_Atl said...

I think it's a bit hokey that you have to do this, but it worked for me. Thanks!

Anonymous said...

Thank you very much