SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 80 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

js" />

You can see the HTML of the complete web page in Figure 3-9.
Figure 3-9. The HTML for your first ASP.NET AJAX web page
CHAPTER 3 ?–  THE MICROSOFT AJAX LIBRARY: MAKING CLIENT-SIDE JAVASCRIPT EASIER 40
Now run your application by pressing the F5 key. You??™ll be asked if you want to
modify the Web.config file to enable debugging. After you click OK, your default web
browser will open, and you??™ll see a pretty dull-looking web page with a single button that,
when clicked, returns the values for the properties of make, model, and year for this
instance of a Car object. In Figure 3-10, you can see the partial output of this application
because just the first message box has been captured (after closing this message box, the
other showing the year will be shown).
Figure 3-10. Running your first ASP.NET AJAX application that uses JavaScript classes and
namespaces
Using Namespaces and Classes in JavaScript
The AJAX core classes (MicrosoftAjax.js) contain the facility to register namespaces and
classes using the Type.registerNamespace and Type.registerClass methods.


Pages:
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92