Dreamweaver.setlivedataparameters(), Dreamweaver.showlivedatadialog() – Adobe Dreamweaver API Reference CS5 User Manual
Page 359
354
DREAMWEAVER API REFERENCE
Dynamic documents
Last updated 8/27/2013
Arguments
bIsVisible
•
The bIsVisible argument is a Boolean value that indicates whether the Live Data window should be visible. If you
pass
true
to this function and Dreamweaver currently displays the Live Data window, the effect is the same as if
you clicked the Refresh button.
Returns
Nothing.
dreamweaver.setLiveDataParameters()
Availability
Dreamweaver MX.
Description
Sets the URL parameters that you reference in your document for use in Live Data mode.
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.
This function lets you set Live Data values through JavaScript.
Arguments
liveDataString
•
The liveDataString argument is a string that contains the URL parameters that you want to set, in name-value pairs.
Returns
Nothing.
Example
dreamweaver.setLiveDataParameters("ID=22&Name=Samuel")
dreamweaver.showLiveDataDialog()
Availability
Dreamweaver UltraDev 1.
Description
Displays the Live Data Settings dialog box.