Client Side Scripting
A better and faster way for processing data
Client side scripts never go to the server; they are processed by the user's system itself and give their results then and there. This makes them a lot faster and a better choice for some sorts of operations such as form validation. However, client side scripts cannot talk to the database or get any information from the server once the html page is displayed. An HTML page containing forms may contain client side scripts that manipulate and validate data entered into the form. The most common client side scripting tool is the Javascript (Dynamic HTML or DHTML and Javascript). Client side scripts may also be written in VBscript or Perlscript. Sometimes, client side scripts are used to determine which browser the client is running or to create innovative visuals and interactive areas on Web pages. Mouseover image changes, html pages that change on the fly and so on are examples of client side scripts.
Java applets, Active X controls, and Flash-Shockwave effects may also run on the client machine; these are embedded programs that are executed on the client's browser environment. They may be used to show videos, interactive graphics, graphs, or calculations. However, the larger size of such applets and controls, the more time the html page would take to download.
Figure 9e: Client Side Scripting