Five common Ajax patterns

Perhaps the most common Ajax task is to request updated HTML from the server and update a portion of the page with it.

Five common Ajax patterns

Five common Ajax patterns

       

First published by IBM developerWorks at http://www.ibm.com/developerWorks. Visit ibm.com/ developerWorks for more tutorials on open standard technologies, IBM products, and more.

  1. Replacing HTML segments
    Perhaps the most common Ajax task is to request updated HTML from the server and update a portion of the page with it. You can do this can periodically ? for example, to update stock quotes. Or you can update on demand ? for example, in response to a search request. The code in Listing 1 requests a page from the server, and then places that content into a <div> tag in the body of the page.

Come to learn more about: http://javajazzup.com/issue10/page60.shtml