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

 
 
By Jeff Cogswell  |  Posted 2008-12-12
 
 
 

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

by Jeff Cogswell

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

Object Name

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

Object Name

Understanding Document

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

Understanding Document

Available Members

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

Available Members

Full Awareness

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

Full Awareness

Return Type Detection

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

Return Type Detection

Sample Web Page

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

Sample Web Page

At the Breakpoint

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

At the Breakpoint

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

 

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

Rocket Fuel