Chili!Soft ASP provides both VBScript and JScript script interpreters to process the commands in an ASP script. The default scripting language is VBScript, but you can change this to JScript for an ASP page by using the <%@ LANGUAGE> directive at the beginning of your ASP file, as described in "Using @ Directives" in this chapter.
You can change the scripting language for a single block of script by enclosing the block in <SCRIPT> ... </SCRIPT> tags. Normally, a block of code enclosed in <SCRIPT> tags runs on the client side, but you can force the block to run on the server by including the runat=server attribute, as shown in the following example:
<SCRIPT language=JScript runat=server>
Alternatively, your system administrator can change the default scripting language to either VBScript or JScript on the ASP Server. For Windows systems, doing this is described in "Editing the Windows NT Registry" in "Chapter 3: Managing Chili!Soft ASP." For Linux and UNIX systems, doing this is described in "Editing the Chili!Soft Configuration File" in "Chapter 3: Managing Chili!Soft ASP."
Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.