The events handlers can then
perform action such as validating the form’s data; generating a custom URL for
the link or loading a new Web page JavaScript’s event-handling capabilities
provide greater control over the user interface than HTML alone. For example,
when a user submits “submit form” event by sending the form data to a CGI
program further processing. The CGI Program processes the form data and returns
the result to the Web browser, which display the result to the user. By
comparison, when a user a submit an HTML form using a browser that does
implement Java Script, a Java Script event-handling function may be called to
process the form data. This processing may vary form validating the data (that
is, checking to see that the data entered by the user is appropriate for the
fields contained in the form) to per forming all of the required form
processing, eliminating the need for a CGI program. In other words,
JavaScript’s event handling capabilities allow the browser to perform some, if
not all, of the form processing. Compares JavaScript’s event-handling
capabilities to those provided by HTML. Besides providing greater control over
the user interface, these event-handling capabilities help to reduce network
traffic, the need for CGI program, and the load on the web server.
While Java Script’s browser
programming capabilities can eliminate the need for some server-side programs,
others are still required to support more advanced Web applications, such as
those that access data base information, support electronic commerce, or
perform specialized processing. Server-side Java Scripts script are used to
replace traditional CGI Programs. Instead of a Web Server calling a CGI Program
to process from data, perform searches, or implement customized Web
applications, a JavaScript objects that tell the script how it was invoked and
the type of browser requesting its services; it also automatically communicates
any data supplied by the browser. The script
processes the data provided by the browser and returns information to the
browser, then uses this information to update the user’s display. Illustrates
how server-side scripts are used. There are several advantages to using
server-side JavaScript scripts on Netscape and Microsoft web servers: Because
these Web Servers have been specially designed for executing JavaScript
scripts, they are able to minimize the processing overhead that is usually
associated with invoking the script, passing data, and returning the result of
script processing.
You can use JavaScript to replace
CGI scripts written in other languages. This eliminates the problems that are
usually associated with managing multiple CGI programs, which may have been
written in an OS shell language, Perl, tcl, C and other languages. It also
provides tighter control over the security of these server-side applications. The
database extensions integrated within these servers provided a powerful
capability for accessing information contained in compatible external database.
These database extensions may be used by server-side scripts.
About the author: - For more information to visit our website: -
SEO Company and
SEO Services or
Search engine optimization firm