form. inc.php

HTML Control LibraryForm Level Tags
Summary
Please see copyright.inc.php for a detailed description, copyright and license information.
A xajaxControlContainer derived class that assists in the construction of an HTML select control.
Construct and initialize an instance of the class.
Used to add a single option to the options list.
Used to add a list of options.
A xajaxControlContainer derived class that can be used around a list of clsOption objects to help the user find items in a select list.
Used to add a single option to the options list.
Used to add a list of options.
A xajaxControlContainer derived class that assists with the construction of HTML option tags that will be assigned to an HTML select tag.
Constructs and initializes an instance of this class.
Used to set the value associated with this option.
Sets the text to be shown in the select control when this is the selected option.

xajax HTML control class library

Please see copyright.inc.php for a detailed description, copyright and license information.

Description

This file contains the class declarations for the following HTML Controls

  • form
  • input, textarea, select, optgroup, option
  • label
  • fieldset, legend

The following tags are deprecated as of HTML 4.01, therefore, they will not be supported:

  • isindex

clsSelect

A xajaxControlContainer derived class that assists in the construction of an HTML select control.

This control can only accept clsOption controls as children.

Summary
Construct and initialize an instance of the class.
Used to add a single option to the options list.
Used to add a list of options.

Functions

clsSelect

function clsSelect($aConfiguration = array())

Construct and initialize an instance of the class.  See xajaxControlContainer for details regarding the aConfiguration parameter.

addOption

function addOption($sValue,
$sText)

Used to add a single option to the options list.

sValue(string): The value that is returned as the form value when this option is the selected option.
sText(string): The text that is displayed in the select box when this option is the selected option.

addOptions

function addOptions($aOptions,  
$aFields = array())

Used to add a list of options.

aOptions(associative array): A list of key/value pairs that will be passed to clsSelect->addOption.

clsOptionGroup

A xajaxControlContainer derived class that can be used around a list of clsOption objects to help the user find items in a select list.

Summary
Used to add a single option to the options list.
Used to add a list of options.

Functions

addOption

function addOption($sValue,
$sText)

Used to add a single option to the options list.

sValue(string): The value that is returned as the form value when this option is the selected option.
sText(string): The text that is displayed in the select box when this option is the selected option.

addOptions

function addOptions($aOptions,  
$aFields = array())

Used to add a list of options.

aOptions(associative array): A list of key/value pairs that will be passed to clsSelect->addOption.

clsOption

A xajaxControlContainer derived class that assists with the construction of HTML option tags that will be assigned to an HTML select tag.

This control can only accept <clsLiteral> objects as children.

Summary
Constructs and initializes an instance of this class.
Used to set the value associated with this option.
Sets the text to be shown in the select control when this is the selected option.

Functions

clsOption

function clsOption($aConfiguration = array())

Constructs and initializes an instance of this class.  See xajaxControlContainer for more information regarding the aConfiguration parameter.

setValue

function setValue($sValue)

Used to set the value associated with this option.  The value is sent as the value of the select control when this is the selected option.

setText

function setText($sText)

Sets the text to be shown in the select control when this is the selected option.

This file contains detailed information regarding the xajax project, current version, copyrights, licnese and documentation.
This class is used as the base class for controls that will contain other child controls.
function clsSelect($aConfiguration = array())
Construct and initialize an instance of the class.
function addOption($sValue,
$sText)
Used to add a single option to the options list.
function addOptions($aOptions,  
$aFields = array())
Used to add a list of options.
A xajaxControlContainer derived class that assists with the construction of HTML option tags that will be assigned to an HTML select tag.
function addOption($sValue,
$sText)
Used to add a single option to the options list.
function addOptions($aOptions,  
$aFields = array())
Used to add a list of options.
function clsOption($aConfiguration = array())
Constructs and initializes an instance of this class.
function setValue($sValue)
Used to set the value associated with this option.
function setText($sText)
Sets the text to be shown in the select control when this is the selected option.