eo_GetObject Function

Retrieves an instance of EO.Web client side object.

Syntax
JavaScript
 function eo_GetObject(id)

Parameters

id
The ID of the control. See remark section for details.

Return Value

The Navigator, Calendar or Callback object with the specific client ID.

Remarks

Usually you can use the ID of the server control as the id parameter to call this function. However, when two server controls resides in different naming containers (for example, two user controls), it's possible for them to have the same ID. In this case you should use the value of the ClientID of the Callback control as the id parameter. You may need to use a debugger to find out the ClientID value.

Note most of the time it is not necessary to call this function to get a reference of the client side function. When a client side object is created, it is automatically declared with a variable name that is the same as the control's ClientID. For example, if a Menu control with ID "Menu1" is placed inside a user control with ID "uc1", the Menu's ClientID can be "uc1_Menu1", in this case, you can use "uc1_Menu1" to reference the client side menu directly, for example:

window.alert("top level item count: " + uc1_Menu1.getTopGroup().getItemCount());
See Also