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.

image

image

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






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

5 comments:

Unknown 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.......

LMARAM

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