|
|
|
|
|||
|
more pages
|
VBScriptVBScript began its life as a
client-side scripting language and some of the examples shown below do indeed
operate as such. In these cases one typically surrounds the VBScript as shown: <!--
The main disadvantage of using VBScript as a client-side scripting language is the fact that it is unlikely to be read by browsers other than Internet Explorer.
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
However, because one of VBScript's most important functions is to develop ASP (Active Server Pages) and ADO (ActiveX Data Objects) you are also likely to encounter the following notation where code is placed between the script tags (<% %>). (Note that asp code is not visible in a 'view source' window)
<%@ Language=VBScript %> html code etc <% html code etc </html>
If you include the ASP script delimiters <% %> then the page must be saved with the .asp extension.
VBscript users can get into difficulties when mixing server-side and client-side script. This discussion illustrates the point Here are a few examples of client-side and server-side scripts: (some derived from "VBScript in a Nutshell", Childs Lomax and Petrusha, published by O'Reilly, ISBN 1-56592-702-6)
inches
(htm)
|
||
|
|
|||
|
Copyright © 2008 [Fen Tyler] |