Ajax and Usability

There are many good examples of Ajax (Google Maps, Flickr, and Google Suggest, to name a few), but it is very easy to create a confusing and difficult-to-use Ajax application. Below is a list of some roadblocks that you may encounter along your road to implementing excellent Ajax.

The Back Button

Web users are accustomed to using their browser's back button to return to pages they've just seen. Unfortunately, unless special care is taken, the back button does not work as expected in Ajax applications. For example, if you click the left side of a Google map and drag it to the right side of the screen, the map will change, but clicking the browser's back button won't return the map to its previous state. Instead, because all of ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.