Home > Microsoft .Net Development Tips > ASP.NET Development > Visual Studio's IntelliSense for jQuery doesn't autocomplete correctly
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ASP.NET DEVELOPMENT

Visual Studio's IntelliSense for jQuery doesn't autocomplete correctly


Ed Tittel, Contributor
12.02.2008
Rating: --- (out of 5)


.NET Essentials Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


The home page for jQuery is aptly titled "The Write Less, Do More, JavaScript Library." In slightly more descriptive terms, jQuery is designed to simplify HTML document navigation, event handling, animations and Ajax interactions with an eye toward speeding Web development. It's designed by some serious JavaScript heads for other serious JavaScript heads to help them accomplish minor miracles using incredibly concise and compact code. But until recently, this capability did little for Visual Studio developers, because the IntelliSense facility didn't really know what to make of (or how to deal with) jQuery as a part of its JavaScript auto-coding and auto-completion capabilities.

On November 21, the vice president of Microsoft's .NET Developer division, Scott Guthrie, announced that his group had produced "great jQuery IntelliSense support" in for both Visual Studio 2008 and the free Visual Web Developer 2008 Express package in collaboration with the jQuery development team. This delivers on his promise, made in September, that such support would be forthcoming. Guthrie's blog post has instructions on how to grab and install the proper hotfix to add this capability.

But it turns out that while you can indeed use IntelliSense with jQuery now, there's a little more work involved in using it effectively -- or, as the JavaScript heads might put it, in remaining true to the "write less, do more" mission. JQuery supports lots of concise shortcuts to facilitate its "write less" abilities, but IntelliSense must be guided and even tricked to work as naturally as possible with native, compact jQuery syntax.

Several programmers have written about this problem in detail. Brad Vincent noted the IntelliSense jQuery bug in a blog entry more than half a year before all the recent hoopla, and James Hart came up with a clever solution to the jQuery IntelliSense problem in Visual Studio. Hart's fix is to create a dummy JavaScript file that contains stubs to all of jQuery's calls and link to it within Visual Studio; the editor picks up the dummy APIs and auto-completes based on them, but the end-user's Web browser actually uses the jQuery library. Scott Hanselman has also put together a nice tutorial on working with jQuery inside VS 2008.

It's nice to see Microsoft actively supporting widely-used third-party developer tools inside its own products. It kind of makes me think that they get the notion that the whole community can always out-do, and out-develop, any single vendor -- no matter how big, smart, or all-encompassing it might seek to be.

Ed Tittel is a full-time writer and trainer whose interests include XML and development topics, along with IT Certification and information security topics. E-mail Ed at etittel@techtarget.com with comments, questions, or suggested topics or tools to review.

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
ASP.NET Development
How to use jQuery to solve Javascript browser compatibility problems
How to write an out-of-browser Silverlight 3 application in 3 steps
Silverlight 3 beta SDK download lets developers try new RIA features
Dundas Map for .NET kicks up geographic visualization
Return to CodePlex: Into the Sandcastle…
VBScript Tutorial
Use PHP with Visual Studio to create Web sites
Visual Studio Team System Add-ins: Conchango Scrum for Team System and Scrum Dashboard
Visual Studio 2008 and .NET Framework 3.5 SP1 introduces ADO .NET Entity Designer
XAML as an everywhere presentation format

ASP.NET and Ajax development
How to use jQuery to solve Javascript browser compatibility problems
Silverlight, Ajax components require different approach to UI
Internet Explorer 8 beta's development tools add source visualizations
Microsoft PDC gives a taste of Windows 7, Visual Studio 2010
Widgetbox provides good example of how to use Facebook Developer Toolkit
VBScript Tutorial
Ajax Learning Guide
Mainsoft introduces .NET-to-Java translation tool
Ajax.NET Professional retired
Visual Studio 2008 Learning Guide: JavaScript IntelliSense

ASP.NET development tools
Embarcadero RAD Studio 2010
How to use jQuery to solve Javascript browser compatibility problems
Microsoft webcast series previews new Visual Studio 2010 features
Dundas Map for .NET kicks up geographic visualization
Use PHP with Visual Studio to create Web sites
VB code: Internet application downloads
Set of ASP.NET controls addresses data entry
Spring.NET 1.1 brings AOP to .NET development
ComponentArt adds editor, spell checker to ASP.NET UI tool
ComponentOne adds rich-text editor to Studio Enterprise

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Ajax  (SearchWinDevelopment.com)
Atlas  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts