1

I'm using Visual Studio 2008 SP1 with KB958502 (.vsdoc hotfix). This allows us to use IntelliSense to auto-complete JavaScript.

When I use the jquery-1.6.1-vsdoc, there are three errors:

  1. Error updating JScript IntelliSense: jquery-1.6.1-vsdoc.js: 'rootjQuery' is undefined @ 66:2

  2. Expected expression @ 1505:16

  3. Expected expression @ 2649:15

For #3, Line 2649 is "checkClone": , and simply needs a true or false to be assigned.

For #2, Line 1505 is "triggered": }; and simply needs to be changed to "triggered": {} };

Where I'm getting stuck, though, is #1. Line 66 is a comment line, so most likely it's referring to Line67 which is return new jQuery.fn.init( selector, context, rootjQuery );

Anyone know how to fix this? Why would MS put something out that has 3 errors right off the bat? Surely, they test this before putting it out there.

Code Maverick
  • 20,171
  • 12
  • 62
  • 114
  • I think you will not be able to use jquery-1.6.1-vsdoc because many users have already complaint about it. – Amit May 16 '11 at 16:18

2 Answers2

2

I´ve been searching for an answer to VS2008 intellisense, and I've found the solution...

Add the next at line 67: rootjQuery = jQuery(document);

And that make the intellisense of VS2008 works.

By the time I don't know if that is the best solution but it works. :P

Best regards.

Apolo!

Apolo
  • 36
  • 2
  • Awesome! I figured it was something easy. I don't know why I didn't try that. I would add that you still need to fix those other 2 errors I mentioned in my OP, but that's simple. Great job. +1 – Code Maverick Jun 30 '11 at 18:01
1

If you want to use jquery intellisense support you can use jquery 1.4.1 and jquery 1.4.1.vsdoc. It is tested in VS2008

Amit
  • 21,570
  • 27
  • 74
  • 94
  • I know I can use that one, but that really isn't the question. There are changes to 1.6 that I wanted in the IntelliSense. – Code Maverick May 16 '11 at 17:56
  • 1
    @Scott: If you really want to use ` jquery-1.6.1-vsdoc.js` then you should use Visual Studio 2010, its working in VS2010. – Amit May 16 '11 at 21:12