< prev up next >

Response Formatting

.ispg files contain HTML text and two groups of formatting instructions: data dependent formatting instructions (dynamic), or file inclusion commands (static). The formatting instructions are delimited in HTML with script markers, depending on type:

dynamic  -  

delimited by <% and %> (or #%>) script markers. As mentioned in the request processing description, the values of the global variables at the end of the program can be used as operands during .ispg page formatting. Inside the script markers there can be:

  • an operand reffering to .icod file variable, whose value will replace the space between the markers in the output, or
  • a conditional test based on the values of two operands, deciding which parts of the following HTML code must be output, or
  • an operand followed by a repetition operator, deciding how to output the following HTML code for each of the items of a container variable.
     
static  - delimited by <%# and #%> (or %>) script markers. Inside the markers can be placed include commands, references to parameters passed in include commands or special placeholders for static (complile time known) values, such as current file name, path, extension, etc 

The # marker before the closing %> must be used only when placing this syntax inside html elements attributes used as URLs. For dynamic formatting, it will url-encode the output; for static formatting, it will inhibate generating some optional tracing helper HTML comments (which cannot be placed inside HTML attributes).

Web designers have the opportunity to define data models that can contain sample data for the global level page variables. These files can be loaded in the internal browser and the page rendered will display the sample data, with proper formatting. 

 

< prev up next >
Terms of Use Privacy Policy Disclaimer Copyright © Fast Web Technologies LLC
  Contents of:
Home Products Support Downloads About Us