10.02.2014 Views

Beginning Ajax With ASP.NET (2006).pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10<br />

Atlas Client Script<br />

On the surface, Atlas sounds like just another <strong>Ajax</strong> library that happens to be from Microsoft.<br />

While Atlas does provide support for <strong>Ajax</strong>-style operations, Atlas provides so much more than<br />

that. <strong>With</strong> the Microsoft Atlas package, there is support for generating client-side JavaScript, and<br />

this chapter delves into that aspect of Atlas. In this chapter, you look at:<br />

❑<br />

❑<br />

❑<br />

❑<br />

❑<br />

An introduction to Atlas<br />

Calling out to web services<br />

Data objects in Atlas<br />

Extensions to the JavaScript language<br />

Support for a programming model similar to programming in .<strong>NET</strong><br />

The Atlas examples and code are based on the March/April CTPs of Atlas. The March CTP is the<br />

first version of Atlas that comes with a “Go-Live” license for actual usage in a production application.<br />

The April CTP is basically a set of bug fixes to the March CTP. It is our intention to<br />

update these files with new versions as breaking changes are made to Atlas. The site for the files<br />

is http://beginningajax.com. Alternatively, you can check for updates on the Wrox web<br />

site for this book (www.wrox.com).<br />

Introduction to Atlas<br />

There has been a lot of confusion in the marketplace regarding what Microsoft’s Atlas project is. At<br />

this time, Atlas will be included in the next version of <strong>ASP</strong>.<strong>NET</strong> and the .<strong>NET</strong> Framework. From a<br />

programming standpoint, Atlas may be considered to be at least a couple key things:<br />

❑<br />

<strong>Ajax</strong> library — The part of Atlas that has programmers talking the most is the support for<br />

<strong>Ajax</strong>. <strong>With</strong> this support, Microsoft has created a library to support the ability to communicate<br />

back to the server without the need to perform a full postback from the client to the<br />

server.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!