Changes

About this Book

1 byte added, 18:04, 18 May 2007
no edit summary
Welcome to JavaScript Essentials.
Before JavaScript was created , a typical web browsing experience consisted largely of displaying static pages of information. Any type of user interaction with a web page usually involved the browser sending information back to the web server where some type of server based script or other program would validate the user's data input. The server would then send back either a static error page if the user had entered invalid data or, assuming successful validation, return a static page to the web browser containing the results of the transaction. In addition, the lack of a mechanism to implement dynamic web page content and behavior dictated that an entirely new web page be loaded in order to display new information.
It quickly became clear that a way of perfoming "client-side" or "web browser-side" processing was needed. The original intent for JavaScript, therefore, was to address this need by allowing such tasks as validating user input before it is transimitted to the web server, and creating dynamic web page content and layouts independently of the web server (for example displaying different text depending on a user's actions within the page).