AJAX uses a combination of, see figure 2.1:
- XHTML and CSS, for markup and styling.
- DOM accessed with client-side scripting language such as Javascript and JScript, for dynamically display and interact with the information presented.
- XMLHttpRequest object, for exchanging data asynchronously with the web server.
- XML, as a format for transferring data between server and client.
Pros and Cons
Pros:
Pros:
- an improvement to the user's experience;
- cut down the bandwidth consumption, "load on demand";
- encourage programmers to clearly separate the methods and formats used for the different aspects of information delivery via the web.
Cons:
- transparent to the history, means that browser doesn't return desired result as triggering the "Back" button and make user difficult to bookmark a particular state of the page;
- network latency may lead to the web page looks weird;
- be careful the Javascript, because the different implementation by different browsers or versions of a particular browser.
- AJAX in Action - Chapter 2;
- http://en.wikipedia.org/wiki/AJAX
No comments:
Post a Comment