Saturday, October 31, 2009

jQuery and Visual Studio 2008

I was trying to get VS2008 and jQuery working. I did the following -

1. Verified I had VS2008 SP1
2. Installed VS 2008 Patch KB958502 to Support "-vsdoc.js" Intellisense Files
3. Downloaded the jQuery library (jquery-1.3.2.js) and associated vsdoc.js fxeile (jquery-1.3.2-vsdoc2.js)
4. Add these 2 files to the project
5. Add references to jquery-1.3.2.js in the HEAD section of aspx file.

After these steps, I expected things to work, but I started to see this unhandled exception (Object doesn't support this property or method) occured in typelibbuilder.exe [4620]. I spent the next hour trying to figure out what was wrong. The simple fix was to rename the associated -vsdoc.js file from the default jquery-1.3.2-vsdoc2.js to jquery-1.3.2-vsdoc.js. That was it, and everything worked great.

0 comments:

Post a Comment



Twitter