|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Variables can be declared with the Dim statement within a Function or Sub procedure. In this case, those variables are local to that procedure and can only be referenced within it. If the Static keyword is used when the procedure is declared, all local variables retain their value from one procedure call to the next. The On_Error StatementThe On Error statement is used to enable error handling. Syntax: On Error Resume Next On Error Resume Next enables execution to continue immediately after the statement that provokes the runtime error. Alternatively, if the error occurs in a procedure call after the last executed On Error statement, execution commences immediately after that procedure call. This way, execution can continue despite a runtime error, enabling you to build an error-handling routine inline within the procedure. The most recent On Error Resume Next statement is the one that is active, so you should execute one in each procedure in which you want to have inline error handling. VBScript FunctionsVBScript has an assortment of intrinsic functions that you can use in your scripts. The VBScript documentation on the accompanying CD contains a full reference for these functions. Table 33.3 shows the functions that exist for performing different types of operations. (Because you can use some functions for several types of operations, they appear multiple times in the table.)
Active Server Pages and the Active Server PlatformThe Active Server Platform refers to Microsofts take on server-side application development. As with the Active Desktop, you can author on the server side with three standard components: HTML, scripting, and software components, such as Java applets and ActiveX server components. This enables you to leverage your client-side development skills to start building dynamic applications on your server. In addition, you can take advantage of a number of Microsoft server technologies and services, such as Transaction Server, Merchant Server, Proxy Server, and so on, to implement specialized business solutions. Microsofts server technology is tightly integrated with Windows NT operating system and Internet Information Server (IIS). As a result, your Active Platform solution will benefit from the operating systems services and features. Your Web application, for example, can inherit Windows NTs built-in security mechanism.
Advantages of the Active Server PlatformIf yours is a Microsoft shop, then you can harness the many advantages of developing on the Active Server Platform. These include:
Active Server PagesYou can create Active Server Pages (ASP) by using the same set of components you use to implement client-side scripting. That is, you can integrate Active Server components and Java applets within your ASP code by using scripting languages such as VBScript, JavaScript, and JScript. The Active Server includes a number of prebuilt, pretested Active Server components, such as the Browser Capabilities Component and Active Data Object (ADO) Component. By using the Browser Capabilities Component, you can detect the type of client browser. In response, you can create the HTML that the browser will be capable of handling. For instance, if the browser does not support frames and tables, you can create and send a simple HTML page that will not use the <FRAME> and <TABLE> tags.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |