Usability Views Article Details
 home | timeline | recent | popular | e-reports | userati | books | about 

Jeremy Keith (10 Oct 2005)
For me, I think graceful degradation is the most important factor. What that boils down to is that a good script shouldn’t make any assumptions about its environment. Instead, it should investigate the terrain and carry out tasks only when the browser or document are capable of executing the instructions. The obvious example is object detection. Instead of assuming that the browser understands a method you’re going to use, like document.getElementById, you test for its existence before doing anything else in your script. The same approach applies to the document itself. Don’t assume that an element with a certain id exists-check for its existence before trying to manipulate it.
Article URL:

Read 330 more articles from Digital Web sorted by date, popularity, or title.
Next Article: Never Get Involved in a Land War in Asia (or Build a Website for No Reason)
  RSS 0.91  Subscribe with Bloglines  Add to My Yahoo!  Preview in Google Reader
Books about Usability | Information Architecture | Information Visualisation | Technology History

Some of the people who make up the Userati group
This site is a labour of love built by Chris McEvoy

Amazon Honor SystemClick Here to PayLearn More