Class Index | File Index

Classes


Class upBrowser

A static instance is available as Browser.
Defined in: <browser_base.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Encapsulates crossbrowser methods.
Field Summary
Field Attributes Field Name and Description
 
Check Browser support for HTML5 and CSS.
Method Summary
Method Attributes Method Name and Description
 
evalInGlobalContext(strCode, isFile)
Evaluates javascript code in global context.
 
getValue(oControl, p_Attr)
Get control value
 
setValue(oControl, value, p_Attr, p_bFireEvent)
Set control value
Class Detail
upBrowser()
Encapsulates crossbrowser methods.
Field Detail
{BrowserSupportTest} support
Check Browser support for HTML5 and CSS.
Method Detail
evalInGlobalContext(strCode, isFile)
Evaluates javascript code in global context. Variables are declared inside the window namespace and not only in the eval namespace.
Parameters:
strCode
Javascript code as string.
isFile
True, if the code is the content of a file, which was loaded by ajax.

{string} getValue(oControl, p_Attr)
Get control value
Browser.getValue( getElement("[ELEMENT-GUID]") );
Parameters:
{object} oControl
Reference to an html element or an upControl object.
p_Attr
{object} (optional) additionals informations for target control, depends on target control
Returns:
{string} Control value

{boolean} setValue(oControl, value, p_Attr, p_bFireEvent)
Set control value

// general
Browser.setValue( getElement("[ELEMENT-GUID]"), "Hallo Welt!" );

// Distribution-/Multiselect control
// strModus: append | replace
Browser.setValue(getElement("[ELEMENT-GUID]"), ["GUID1", "GUID2"], {bAsync: false, strModus: "append"})

// upDateControl | upDateTimeControl | upTimeControl
// set current date
Browser.setValue(getElement("[ELEMENT-GUID]"), new Date())
// current date + 1 year
Browser.setValue(getElement("[ELEMENT-GUID]"), "+1,,,,,")
// set first day of the current month
Browser.setValue(getElement("[ELEMENT-GUID]"), ",,1,,,")

// upFilterCtrlRangeof | upFilterCtrlCalendar
// set from current date - 5 days until now
Browser.setValue(getElement("[ELEMENT-GUID]"), {from: (new Date()).add("d",-5), to: new Date()})
Browser.setValue(getElement("[ELEMENT-GUID]"), {from: ",,-5,,,", to: ",,,,,"})

// upFilterCtrlOperator
Browser.setValue(getElement("[ELEMENT-GUID]"), {datafield: "datafieldXY", operator: "contains", search: "test"})
Parameters:
{object} oControl
Reference to an html element or an upControl object, whose value is to be set.
{string} value
Control value to set.
p_Attr
{object} (optional) additionals informations for target control, depends on target control
p_bFireEvent
{boolean} (optional) trigger onchange event. Default: true
Returns:
{boolean} Status result

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Nov 23 2012 12:16:41 GMT+0100 (MEZ)