Coding to Support Visual Studio IntelliSense

Visual Studio 2008 adds support for the JavaScript development environment through IntelliSense help for JavaScript class libraries. IntelliSense is enabled by adding script references at the head of the JavaScript file. Each file should list core libraries that it references in the form of script references. Script references can be named resources for compiled assemblies, such as the Microsoft AJAX Library itself, or path-based references. To add a reference to the AJAX library, include the following line at the top of your JavaScript file:

/// <reference name="MicrosoftAjax.js"/>

For assemblies other than the AJAX library, you need to include the assembly name in the script reference. For example, ...

Get Developing Service-Oriented AJAX Applications on the Microsoft® Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.