genericHTML

The genericHTML DSP widget can be used to define properties for any HTML element that can be bound to a field, making it possible to manipulate its attributes in ProcScript and JavaScript.

Default Logical Widget

Uniface provides a default logical widget called AttributesOnly, which is mapped to this physical widget.

Widget Properties

For information on widgets and the types of widget properties, see and Widgets for Dynamic Server Pages and Widget Properties for the Dynamic Server Page.

HTML Properties

This widget supports the following HTML properties:

Common HTML Properties
Property Technical Name W3C Description
Access Key html:accesskey accesskey
Style Class html:class class
Disable the Widget html:disabled disabled
Read Only html:readonly readonly
Tab Index html:tabindex tabindex
Tool Tip Text html:title title

Uniface Properties

Most of these properties represent Uniface properties that have no equivalent in HTML or CSS, or which are used when a Form is converted to a DSP.

Uniface Properties
Uniface Property Technical Name Description
Background Color backcolor Background Color (BackColor)
Syntax Check in Browser clientsyntaxcheck Syntax Check on Browser (ClientSyntaxCheck)
Foreground Color forecolor Foreground Color (ForeColor)
class: ClassName class:ClassName

CSS Properties

The following tables described the supported CSS properties that can be used to style the genericHTML widget and the logical widgets that map to it.

Description

This widget is not intended for displaying or changing the value of a field. It is used only as a mechanism for controlling the appearance, layout, and behavior of XHTML elements in ProcScript. You can use $fieldproperties to set the values of attributes in ProcScript.

This widget also supports a number of extended triggers to control browser behavior. Although it may seem counter-intuitive to have client-side events handled by triggers (which are processed on the server), it provides a mechanism for making the user interface more flexible and dynamic.

Related Topics