iTP Active Transaction Pages (iTP ATP) Programmer's Guide

iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
3-1
3
ATP Web Page and Script Structure
This section describes the syntax for delimiting server-side JavaScript on a web page
and explains the structure of several sample scripts.
This section includes the following subsections:
Web Page Structure on page 3-1
Web Page Processing on page 3-2
Meta Tag Used for MultiByte Support on page 3-2
Script and HTML on page 3-3
Server-Side Script Structure on page 3-4
Web Page Structure
ATP recognizes server-side HTML markup tags that follow Netscape LiveWire
conventions, so you can use Web authoring tools that support those specific server-side
tags.
A page that includes server-side JavaScript must have the extension .atp. To mark the
boundaries of a server-side script, use any of the following tags:
<server></server>
<% %>
This option supports migration of Microsoft Active Server Pages (ASP). You also
can use the % delimiter to print out the value of a variable as follows:
<%=variable %>
` (backquote)
This option lets you embed a script in another tag, such as
<ahref="`bit of script`">
You can use the <server></server> syntax within a tag, but backquotes are
more readable. Backquotes that appear within server tags are ignored.
\Q (escaped backquote)
<script language=atpScript></script>
This option lets you use web authoring environments, such as Microsoft FrontPage,
which do not recognize the other script boundary declarations shown above.