Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 5th, 2010, 06:48 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default Visual Studio 2010 and JQuery Intellisense

Visual Studio 2010 has very nice jQuery intellisense support, but I have to add a hint at the top of my javascript file - a reference path to the vsdoc file.

Is this how it supposed to be? I am using Visual Studio 2010 beta 2 and JQuery 1.4.2. By the way, does anybody know whether there is a vsdoc for 1.4.2? I am using 1.3 vsdoc.
Reply With Quote
  #2 (permalink)  
Old March 6th, 2010, 07:37 AM
Imar's Avatar
Wrox Author
Points: 66,833, Level: 100
Points: 66,833, Level: 100 Points: 66,833, Level: 100 Points: 66,833, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,159
Thanks: 65
Thanked 1,394 Times in 1,374 Posts
Default

Hi there,

Version 1.4.2 of the jQuery library was recently released and it takes some time before the VS doc file becomes available. You can find the 1.4.1 version here: http://www.asp.net/ajaxlibrary/cdn.ashx

Most of the times, VS will figure out the doc file based on the script files you're referencing. In a JavaScript file it makes sense. VS doesn't know where this file is going to be used, and thus doesn't know what other script files are available. Adding an XML doc reference fixes the problem and brings the documentation in the referenced file in scope.
You may want to up upgrade from beta 2 to the RC version.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old March 6th, 2010, 12:03 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

From VS design point of view... If I use jquery for javascript, likely I will use it consistently. So a better way is to have a VS setting that lets me specify jquery vsdoc as the default for all javascript files, instead of having to comment each file.
Reply With Quote
  #4 (permalink)  
Old March 6th, 2010, 12:09 PM
Imar's Avatar
Wrox Author
Points: 66,833, Level: 100
Points: 66,833, Level: 100 Points: 66,833, Level: 100 Points: 66,833, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,159
Thanks: 65
Thanked 1,394 Times in 1,374 Posts
Default

It has to know you're using jQuery somehow. It does this (AFAIK), by following script references in pages and other files that are in scope.

Try http://connect.microsoft.com if you want to file enhancement requests for VS....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old March 6th, 2010, 12:15 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

I will submit a request for enhancement. Thanks.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 06:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 06:02 AM
Visual studio 2005(32 bit) code not work in visual studio 2008 on windows server 2008 gr8.jain Visual Basic 2008 Essentials 1 August 31st, 2009 10:07 AM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 04:10 AM



All times are GMT -4. The time now is 02:32 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.