Chapter 6 Writing DynaScripts


Overview of scripts

You can embed scripts in HTML templates to control the information that the template provides to the user. The PowerDynamo script language, DynaScript, uses a syntax much like JavaScript. DynaScripts are interpreted by the application server, and the results of that interpretation are passed on to the Web server.

DynaScript has the following characteristics:

Using a server-side language

Scripting languages for the Internet are interpreted at either the Web client or the Web server.

DynaScript is a server-side language that follows the ECMAScript standard (the standardized version of JavaScript). DynaScript has a syntax much like JavaScript. There are many uses for a server-side scripting language:

There are some tasks that can be better performed (or only performed) at the client side. For example, you cannot direct HTML to different frames in a window from the server side.

Why a JavaScript-based language?

There are several languages commonly used for Web-related tasks, including Java, JavaScript, and Perl. An ECMAScript compatible language provides several advantages in PowerDynamo:

Implementing scripts

You can implement DynaScript in several ways:

 


Copyright © 2001 Sybase, Inc. All rights reserved.