MindFusion.Charting for JavaScript Programmer's Guide
Control.find Method
See Also
 






Returns the control with the specified ID.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

function find (id)

 Parameters

id

Type: String
String. The ID.

 Return Value

Control. The control with the specified ID, if found; otherwise, null.

 Example

The following code uses the find method to search for an oval Gauge that must be disposed because it is no longer rendered on the web page.

JavaScript  Copy Code

function stopClock()
{
 clearInterval(timerId);

 document.getElementById("clock").parentNode.style.visibility = "hidden";

 var clock = g.OvalGauge.find("clock");
 if (clock)
  clock.dispose();
}

 See Also

Control Members
Control Class
MindFusion.Common Namespace