Things you want to know about websites

 

Website Scripting Techniques/ Technologies

Dynamic behavior is generally added to websites using two methods or programming techniques.

These are,

Client-Side scripting

In client-side scripting the code is designed to run on user's computer. The dynamic behavior associated with client side scripting occurs at users browser in response to some events like a key pressed, mouse movements or some options selected.

The most popular client-side scripting language is javascript. The code is usually designed to work using the DOM (Document Object Model) of the web pages.

For a client-side script to work, the user's browser must support all the requirements. For example, if a dynamic script uses javascript and the visitor's browser has java disabled, then the code will not execute.

A very simple example of client side scripting is interactive menus like pop-out menus, they are dynamic and change behavior in response to mouse movements usually. You can see menus for more information on menus. Another example is form processing in which the data entered is checked for validity before submitting it to the web server.

Server-Side scripting

In server-side scripting the code is designed to run on the web server. The dynamic behavior is concentrated at the web server which occurs in response to some query, sent by the user to the server or some other conditions. The output to be displayed on user's browser is generated at the server and then sent to the end user.

For a server-side script to work, only the server has to full fill the requirements of the code. The visitors browsers doesn't play any part as the code is executed on the server only.

The most used server side scripting languages include PHP, Perl and ASP. The code is usually designed to work with the CGI(common gateway interface) to produce dynamic web pages.

A common example of server-side scripting that you may have seen is form processing. The information is entered in the form and upon submitting, the code at the server checks the form data and either validates it or gives back an error message if something is wrong. The data is then sent to a database or an email server usually.

Dynamic websites are also produced using server-side scripting methods. Other examples are Content Management Systems, which produce dynamic websites.


Bookmark or Add to Favorites

Related:

Making money
Website designing
Menus
Types of websites

Link to this page :

Copy and paste the following code in an html document to link to this page,