Developer Forums | About Us | Site Map
Search  
HOME > TUTORIALS > DESIGN AND LAYOUT > USABILITY TUTORIALS > USING WEB WIDGETS WISELY, PART 2


Sponsors





Useful Lists

Web Host
site hosted by netplex

Online Manuals

Using Web widgets wisely, Part 2
By Jodi Bollaert - 2004-03-19 Page:  1 2 3 4 5 6 7 8 9 10

Client-side scripts for improved usability

It has been said that too much power can be dangerous. That saying is befitting when it comes to enhancing or creating Web widgets with client-side scripts. Web widgets, as you might recall from Part 1, are controls used in Web forms, dialogs, and wizards to elicit information from users. While scripts allow developers to create an infinite variety of Web widgets and behaviors, straying too far from users' expectations can lead to usability problems. Jodi Bollaert describes some common usability problems associated with client-side scripts and Web widgets, and suggest ways to avoid them.

What is a client-side script?

Scripts generally come in two flavors -- client-side and server-side. As the names imply, client-side scripts execute on the client (the user's machine) and server-side scripts execute on a server. A client-side script is embedded in HTML documents within the <SCRIPT></SCRIPT> tags.

Client-side scripts can be used to extend the capability of HTML Web widgets or create completely new widgets. Some of the popular client-side scripts used today include:

  • JavaScript
  • Java Applets
  • DHTML (combination of CSS and Javascript)
  • Flash (Actionscript)
  • VBScript

Developers can usually create similar functionality with more than one type of script. The choice of which script to use may depend on developer expertise, target platforms, and target browser types and versions. (More on this below.) While this article won't tell you HOW to develop scripts, I will share some tips on how your scripts can enhance, rather than hinder, your site's usability. There is a wealth of information available about how to develop scripts on the Web and in books (see Resources).



View Using Web widgets wisely, Part 2 Discussion

Page:  1 2 3 4 5 6 7 8 9 10 Next Page: Advantages and disadvantages of client-side scripts

First published by IBM developerWorks


Copyright 2004-2017 GrindingGears.com. All rights reserved.
Article copyright and all rights retained by the author.