RWA_BUTTON


Purpose

Defines a push button on a form. The button can be  linked to a JavaScriptClosed A programming language supported by most web browsers. Client-side JavaScript allows executable content to be included with web pages.  function which is called to initiate client-side processing of the form when the button is clicked. Appends the generated code to a string.

Syntax

RWA_BUTTON(String, Name, ButtonText, JavaScriptFunction, aClass)

Parameters

String The name of the string to which the new code will be appended.

Name Name of the button.

ButtonText Specifies the text that is displayed on the button. This is also the value returned when the form is submitted with this button clicked.

JavaScriptFunction The name of a JavaScript function which is to be called when the button is clicked. This is used for optional client side processing.

aClass A dynamic arrayClosed A multi-element string variable in which data is divided into elements by attribute marks, value marks and subvalue marks, matching the structure of a Reality file item. The entire array is referenced and stored as a single variable. For more information, refer to the Reality DataBasic Reference Manual that can contain the following elements:

Element No.

Attribute

Description

1

CLASS

The name of a tag class defined in a CSSClosed Cascading Style Sheet - a mechanism by which the presentation of an HTML page can be separated from the content. A style sheet can be used to determine the appearance of one or more HTML pages.  stylesheet.

2

VALUE

Specifies the text displayed on the button. This is also the value returned when the form is submitted with this button clicked.

3

OnClick

Specifies the name of a function to be run when the button is clicked.

Attributes defined in the aClass parameter are applied to the INPUT tag.

For information about using aClass, see The aClass Parameter.

Dependencies

Requires a previous call to RW_START_HTML_FORM.