1792 Posts in 420 Topics- by 2433 Members - Latest Member: maxwhiteford

Author Topic: client side scripting  (Read 555 times)

Jenniferlinn

  • Trade Count: (0)
  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-2
    • View Profile
    • markiting
client side scripting
« on: December 30, 2008, 06:23:50 am »
In computer networking, the term client-side refers to operations that are performed by the client in a client-server relationship.<br /><br />Typically, a client is a computer application, such as a web browser, that runs on a user&#39;s local computer or workstation and connects to a server as necessary. Operations may be performed client-side because they require access to information or functionality that is available on the client but not on the server, because the user needs to observe them or provide input, or because the server lacks the processing power to perform the operations in a timely manner for all of the clients it serves. Additionally, if operations can be performed by the client, without sending data over the network, they may take less time, use less bandwidth, and incur a lesser security risk.<br /><br />When the server serves data in a commonly used manner, for example according to the HTTP or FTP protocols, users may have their choice of a number of client programs (most modern web browsers can request and receive data using both of those protocols). In the case of more specialized applications, programmers may write their own server, client, and communications protocol, that can only be used with one another.<br /><br />Programs that run on a user&#39;s local computer without ever sending or receiving data over a network are not considered clients, and so the operations of such programs would not be considered client-side operations.<br /><br />Client-side scripting generally refers to the class of computer programs on the web that are executed client-side, by the user&#39;s web browser, instead of server-side (on the web server). This type of computer programming is an important part of the Dynamic HTML (DHTML) concept, enabling web pages to be scripted; that is, to have different and changing content depending on user input, environmental conditions (such as the time of day), or other variables.<br /><br />Web authors write client-side scripts in languages such as JavaScript (Client-side JavaScript) and VBScript.<br /><br />Client-side scripts are often embedded within an HTML document, but they may also be contained in a separate file, which is referenced by the document (or documents) that use it. Upon request, the necessary files are sent to the user&#39;s computer by the web server (or servers) on which they reside. The user&#39;s web browser executes the script, then displays the document, including any visible output from the script. Client-side scripts may also contain instructions for the browser to follow if the user interacts with the document in a certain way, e.g., clicks a certain button. These instructions can be followed without further communication with the server, though they may require such communication.<br /><br />By viewing the file that contains the script, users may be able to see its source code. Many web authors learn how to write client-side scripts partly by examining the source code for other authors&#39; scripts.<br /><br />In contrast, server-side scripts, written in languages such as Perl, PHP, and server-side VBScript, are executed by the web server when the user requests a document. They produce output in a format understandable by web browsers (usually HTML), which is then sent to the user&#39;s computer. The user cannot see the script&#39;s source code (unless the author publishes the code separately), and may not even be aware that a script was executed. The documents produced by server-side scripts may, of course, contain client-side scripts.<br /><br />