beautypg.com

Dreamweaver.getlivedatamode(), Dreamweaver.getlivedataparameters () – Adobe Dreamweaver API Reference CS5 User Manual

Page 356

background image

351

DREAMWEAVER API REFERENCE

Dynamic documents

Last updated 8/27/2013

Description
Returns the initialization tags for the currently active document. The initialization tags are the HTML tags that the user
supplies in the Live Data Settings dialog box. This function is typically called from a translator’s

liveDataTranslateMarkup()

function, so that the translator can pass the tags to the

liveDataTranslate()

function.

Arguments
None.

Returns
A string that contains the initialization tags.

dreamweaver.getLiveDataMode()

Availability
Dreamweaver UltraDev 1.

Description
Determines whether the Live Data window is currently visible.

Arguments
None.

Returns
A Boolean value:

true

if the Live Data window is visible;

false

otherwise.

dreamweaver.getLiveDataParameters ()

Availability
Dreamweaver MX.

Description
Obtains the URL parameters that are specified as Live Data settings.

Live Data mode lets you view a web page in the design stage (as if it has been translated by the application server and
returned). Generating dynamic content to display in Design view lets you view your page layout with live data and
adjust it, if necessary.

Before you view live data, you must enter Live Data settings for any URL parameters that you reference in your
document. This prevents the web server from returning errors for parameters that are otherwise undefined in the
simulation.

You enter the URL parameters in name-value pairs. For example, if you reference the URL variables

ID

and

Name

in

server scripts in your document, you must set these URL parameters before you view live data.

You can enter Live Data settings through Dreamweaver in the following ways:

Through the Live Data Settings dialog box, which you can activate from the View menu.