Objects

The Objects component displays information about objects on the page. It has functions that verify if an object has a certain property and also lists all of an object's properties and methods. This component is useful if you create a lot of custom objects, and for debugging them.

Properties

name

DisplayName - Name
Description - (REQUIRED) Enter unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page.
DefaultValue - ObjectsComponent1

Methods

boolean IsPropInObj( str, obj, partialMatch )
Function:InPropInObj
Input:String - value to be compared, Object - object to check for property existance, Boolean - optionalif true, checks for partial matches
Return:Boolean - true if value found, or partially equal otherwise false
Description:This function loops through all of the properties in any JavaScript/JScript object and searches for a given property in the object. The function can be configured so that partial matches on a property name can be conducted.


string ViewObject( obj, objName )

Function:ViewObject
Input:Object - object to check for property existance, String - Object name
Return:String - containing output HTML
Description:This function loops through any JavaScript/JScript object and and returns HTML that will display all properties of the object between two HTML horizontal rules.


Events

None

Other Information

Environment: Client