08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

254<br />

CHAPTER 11 ■ <strong>AJAX</strong> APPLICATIONS AND EMPOWERING THE WEB USER EXPERIENCE<br />

Figure 11-1. MSN MoneyCentral<br />

This web site is a pretty typical one, presenting a portal of information to customers.<br />

There are many information panes on this portal, three of which can be seen in the<br />

screenshot (Video on MSN Money, Quote watchlist, <strong>and</strong> The Basics). Some of these information<br />

panes provide user interaction—for example, the Quote watchlist allows you to<br />

enter the stocks that you are interested in monitoring. It uses a simple HTML form where<br />

you enter the ticker of the stock you are interested in <strong>and</strong> click Add.<br />

The typical web site will refresh the entire page once you click the Add button, causing<br />

a lag for the user, <strong>and</strong> the expense of traffic for the web site administrator. If you were<br />

to use a technique that allows for a partial refresh, then only the information pane that<br />

you want to change (i.e., the Quote watchlist) would be changed.<br />

It was with use cases like this in mind that browser developers started adding new<br />

features long before the term Ajax was coined. The first attempt at allowing something<br />

like this was the IFrame, introduced in Internet Explorer 3 in 1996. This allowed you to<br />

use something similar to a frameset, but to have a frame showing a different set of content<br />

to be embedded within a page. Thus, in an application such as MoneyCentral, you<br />

would have one master page, <strong>and</strong> one complete subpage for each of the information<br />

panes. These pages would then be rendered on the master page using an IFrame. This<br />

technology still works <strong>and</strong> is useful today, but it makes for more complex management of<br />

a portal such as MoneyCentral, as many independent pages need to be maintained. The<br />

IFrame, <strong>and</strong> other new elements such as <strong>and</strong> , when grouped together with<br />

JavaScript, evolved into the generic term DHTML (Dynamic HTML), with the intent<br />

being that developers could produce pages that rewrite their own HTML in response to

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

Saved successfully!

Ooh no, something went wrong!