Class PTFormUtil

Object
   |
   +--PTFormUtil

class PTFormUtil


Static class containing form utility methods.

Usage:	
 	PTFormUtil.fillSelect(select, {'One': 1, 'Two': 2});
 

Defined in PTUtil.js


Field Summary
<static>  <final> Object VERSION
          
 
Constructor Summary
PTFormUtil ()
            PTFormUtil static object constructor
 
Method Summary
<static> Number addItemToSelect(sel,val,txt,idx)
           Insert new option into select at a given index.
<static> void clearSelect(sel)
           Remove all options from a select object.
<static> void disableAllSelects(elem)
           Disable all select object within a given document.
<static> void enableAllSelects(elem,useSelectStateCache)
           Enable all select object within a given document.
<static> void fillSelect(sel,optionsInfo)
           Fill the options in a select menu from an array of text/value data.
<static> void focusAndSelectText(input)
           Move keyboard focus to a given text element and select the text within it.
<static> void focusFormFieldByName(fieldName)
           Focus a given form field by name.
<static> String getRadioValue(rads)
           Get the value of the currently checked radio within a radio group.
<static> Array hideAllSelects(elem)
           Hide all select object within a given document.
<static> void hideSelects(selects)
           Hides all select elements that are passed in as an array.
<static> void selectMoveItemDown(sel)
           Re-order select options by moving currently-selected option down.
<static> void selectMoveItemUp(sel)
           Re-order select options by moving currently-selected option up.
<static> Boolean setRadioValue(rads,val)
           Set the checked state by value of the radio object within a radio group.
<static> Boolean setSelectValue(sel,val)
           Set the selected state by value of an option within a select object.
<static> Boolean setSelectVisibility(select,vis)
           Set the visibility of a given select object.
<static> Array showAllSelects(elem)
           Show all select object within a given document.
<static> void showSelects(selects)
           Shows all select elements that are passed in as an array.

Field Detail

VERSION

<static> <final> Object VERSION

Constructor Detail

PTFormUtil

PTFormUtil()

Method Detail

addItemToSelect

<static> Number addItemToSelect(sel,val,txt,idx)

clearSelect

<static> void clearSelect(sel)

disableAllSelects

<static> void disableAllSelects(elem)

enableAllSelects

<static> void enableAllSelects(elem,useSelectStateCache)

fillSelect

<static> void fillSelect(sel,optionsInfo)

focusAndSelectText

<static> void focusAndSelectText(input)

focusFormFieldByName

<static> void focusFormFieldByName(fieldName)

getRadioValue

<static> String getRadioValue(rads)

hideAllSelects

<static> Array hideAllSelects(elem)

hideSelects

<static> void hideSelects(selects)

selectMoveItemDown

<static> void selectMoveItemDown(sel)

selectMoveItemUp

<static> void selectMoveItemUp(sel)

setRadioValue

<static> Boolean setRadioValue(rads,val)

setSelectValue

<static> Boolean setSelectValue(sel,val)

setSelectVisibility

<static> Boolean setSelectVisibility(select,vis)

showAllSelects

<static> Array showAllSelects(elem)

showSelects

<static> void showSelects(selects)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005