Description

Refreshes an HTML tree and updates it with the latest values of all items.

Function syntax

ColdFusion.Tree.refresh(name)

See also

cftreecfajaximportColdFusion.Tree.getTreeObjectUsing HTML trees in Using Ajax form controls and features in the Developing ColdFusion Applications

History

ColdFusion 8: Added this function

Parameters

Parameter

Description

name

The value of the name attribute of the cftree tag for which you want the object.

Returns

An object of type YAHOO.widget.TreeView.

Usage

Use this function to manually update the tree. If you populate the tree by using a bind expression, the refresh call causes the bind expression to be re-evaluated and repopulates the tree root nodes. Use this function any time you must get the latest data from the server independent of an event that triggers the cftree bind expression, for example, use this function to periodically refresh a file/folder tree to represent the status of the server.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy