Application Development - eWeek

Application Development: eWEEK Labs Walk-Through: Using jQuery in Microsoft Visual Studio 2008

By Jeff Cogswell on 2008-12-12


Microsoft Visual Studio now supports jQuery. Or is it the other way around? JavaScript application developers who use jQuery can now have full control over their jQuery code using Visual Studio 2008's latest version of IntelliSense.

  • of

eWEEK Labs Walk-Through: Using jQuery in Microsoft Visual Studio 2008

by Jeff Cogswell

Object Name

IntelliSense knows you're inside a JavaScript code block and offers suggestions as you type.

Understanding 'Document'

IntelliSense knows that "document" is an available object name. At this point, you can press the period key.

Available Members

After typing the period, IntelliSense lists available members for the object.

Full Awareness

When you add the IntelliSense-annotated version of jQuery, IntelliSense becomes fully aware of the jQuery objects.

Return Type Detection

IntelliSense can detect the return type of the function and display members for that type based on the annotations.

Sample Web Page

Here's the sample Web page that will be debugged. Clicking the button opens the debugger at the breakpoint.

At the Breakpoint

Visual Studio activates with at the breakpoint. Floating the mouse over the $ function reveals its members.

  • More slideshows

Advertisement

FEATURED SPONSOR MESSAGE

Start the New Year with business intelligence—it’s a smart move

Join us on February 1 for an encore rebroadcast at either 5 am or 12 noon EST and discover how business intelligence (BI) supports companies in uncertain business and economic climates. Get expert advice on how to create a strategy that fits your organization's needs and budget and see how quickly it can pay for itself.

Click Here

Brought to you by

 

eWEEK Quick LInks