PLEASE note: These pages are here solely for historic purposes. New articles have not been written since 2001; many links in the index are broken; and most ahref.com email addresses will now bounce. Try visiting ep Productions, Incorporated, the web programming and development company behind this site.

Tip: In search of books on web development? Try the bookstore.

web index ahref.com: a community space for web developers------ -----
IndexToolsCareersTalk
ahref.com > Guides > Technology

Technology Guide

Introduction to Active Server Pages, Continued

Using Scripts to Extend ASP

VBScript, JavaScript, and JScript are scripting languages that, when added to an HTML file with SCRIPT tags, will allow for some tailoring of display. These languages generally are run on the client side; in other words, they are run by the browser when called for. Used on their own, they have some serious drawbacks.

  • They are browser-specific, so the same code may be interpreted differently depending on the browser being used.

  • They can't be used to refer to a database (such as a product catalog) or to store data.

Despite these drawbacks, scripting languages can be useful. Possibly their best use is in validating data; for example, guaranteeing that certain fields have been filled out within a form before the data is sent back to the server for processing. This is done by having a script run when someone clicks on the submit button of a form. The function would check all of the form's required fields. If any of the required fields were left empty, the script would display an alert message informing the user that they had left a field blank.

Scripts can be used on the server side, but they are more commonly used on the client side. There is an attribute of the SCRIPT tag that allows the programmer to determine where the code is to be interpreted. The default is to process all code in SCRIPT tags on the client side (in the browser), but the programmer can set the attribute so that scripts are processed on the server.

Microsoft Scripting Technologies
Information and tutorials on scripting, including VBScript and JScript.

Creating ASP Pages
A tutorial that shows how to create the popular "Hello World!" script.

continue reading >>>
or jump to a topic:

Introduction
How Files Are Interpreted
Using Scripts to Extend ASP
Components and Objects
Potential Drawbacks
Sample Code


view a printable version of this article


To suggest a topic, please email guides@ahref.com.

 


HOME ||| ABOUT AHREF.COM ||| ADVERTISE ||| FEEDBACK ||| SEARCH THIS SITE ||| CONTRIBUTE

© 1998-1999 ep Productions, Inc. All rights reserved. Terms of use.