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.
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. |
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. |
Environment: Client