beautypg.com

Chapter 16: dynamic documents, Server components functions, Dreamweaver.servercomponents.getselectednode() – Adobe Dreamweaver API Reference CS5 User Manual

Page 351: Dreamweaver.servercomponents.refresh()

background image

346

Last updated 8/27/2013

Chapter 16: Dynamic documents

The dynamic documents functions in Adobe® Dreamweaver® perform operations that are related to web server pages.
The operations include the following:

Returning a property for the selected node in the Components panel

Getting a list of all data sources in the user document

Displaying dynamic content in Design view

Applying a server behavior to a document

Getting the names of all currently defined server models

Server components functions

Server components functions let you access the currently selected node of the Server Components tree control that
appears in the Components panel. Using these functions, you can also refresh the view of the Components tree.

dreamweaver.serverComponents.getSelectedNode()

Availability
Dreamweaver MX.

Description
Returns the currently selected

ComponentRec

property in the Server Components tree control.

Arguments
None.

Returns
The

ComponentRec

property.

dreamweaver.serverComponents.refresh()

Availability
Dreamweaver MX.

Description
Refreshes the view of the Components tree.

Arguments
None.