Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
ASP.NET Reference
Client Reference
Global Namespace
 $find Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Sys.Application $find Method

Provides a shortcut to the findComponent method of the Sys.Application class. This member is static and can be invoked without creating an instance of the class.

var o = $find(id, parent);
id

A string that contains the ID of the component to find.

parent

(Optional) The component or element that contains the component to find.

A Component object that contains the component with the specified ID, if found; otherwise, null.

For details about the method that this shortcut represents, see Sys.Application.findComponent Method.

The following example uses the $find method to check whether a custom component exists and to notify the user if the component is missing.

C#
function checkComponent() {
    if (!($find('MyComponent', div1))) {
        div1.innerHTML = 'MyComponent is not available.';
    }
}

Reference

Other Resources

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker