Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
Handling DISPLAY Output : Working with DISPLAY output : Formatting DISPLAY output : HTML attributes of the WEB-CONTEXT handle
 
HTML attributes of the WEB-CONTEXT handle
The WEB-CONTEXT handle provides a set of attributes to modify the formatted output in a Web page. Each attribute is a character string that contains HTML you want to add to a specified portion of SpeedScript frame and paged output. Any settings that you make to these attributes last only until the next Web request. Each request causes the agent to reset these attributes to the default values. This is true for both stateless and state-persistent Web objects.
The following table describes how to use these attributes. For information on how to set and read these attributes, see the WEB-CONTEXT Handle entry in OpenEdge Development: ABL Reference. For information on setting new defaults for these attributes, see Setting HTML attribute defaults.
Table 13. WEB-CONTEXT handle HTML attributes
Attribute
Output location
Description
HTML-END-OF-LINE
End of line
Defaults to the newline character (ASCII 10; '~n'; '\n'). A null string value causes a NEWLINE character (not a null string) to be output. You might set this to <BR>. However, depending on the other attribute values, using the NEWLINE rather than the <BR> tag can result in more readable output when viewing document source in a browser.
Output at the end of each data row for the current iteration of a DOWN frame.
HTML-FRAME-BEGIN
Before a SpeedScript frame
Defaults to <PRE>. Generally, if you change this value you must change the value of HTML-FRAME-END.
Output only before the data rows for the current iteration of a DOWN frame, not to column headers (see also HTML-HEADER-BEGIN and HTML-HEADER-END). Applies to any side-labels displayed in the frame, whether or not the frame is a DOWN frame.
HTML-FRAME-END
After SpeedScript frame
Defaults to </PRE>. Generally, if you change this value you must change the value of HTML-FRAME-BEGIN.
Output at the end of the data rows for the current iteration of a DOWN frame.
HTML-HEADER-BEGIN
Before the column headers of a SpeedScript frame
Defaults to <PRE>. Generally, if you change this value you must change the value of HTML-HEADER-END.
HTML-HEADER-END
After the column headers of a SpeedScript frame
Defaults to </PRE>. Generally, if you change this value you must change the value of HTML-HEADER-BEGIN.
HTML-TITLE-BEGIN
Before a SpeedScript frame title
Defaults to the null string (""), no text. Generally, if you change this value you must change the value of HTML-TITLE-END.
HTML-TITLE-END
After a SpeedScript frame title
Defaults to the null string (""), no text. Generally, if you change this value you must change the value of HTML-TITLE-BEGIN.
HTML-END-OF-PAGE
Between stream pages
Defaults to <HR>. Output between stream pages to visually break up the sectioning caused by the PAGED or PAGE-SIZE options of the OUTPUT TO "WEB" statement. Does not affect the line count of any stream page.