Live data functions
333
In the URL, these parameters would appear as shown in the following example:
http://someURL?ID=22&Name=Samuel
This function lets you obtain these live data settings through JavaScript.
Arguments
None.
Returns
An array that contains the URL parameters for the current document. The array contains an even
number of parameter strings. Each two elements form a URL parameter name-value pair. The
even element is the parameter name and the odd element is the value. For example,
getLiveDataParameters()
returns the following array for the
ID
and
Name
parameters in the
preceding example:
['ID,'22','Name','Samuel']
.
Example
The following example returns the parameters that are specified as Live Data settings and stores
them in the
paramsArray
:
var paramsArray = dreamweaver.getLiveDataParameters();
dreamweaver.liveDataTranslate()
Availability
Dreamweaver UltraDev 1.
Description
Sends an entire HTML document to an application server, asks the server to execute the scripts in
the document, and returns the resulting HTML document. This function can be called only from
a translator’s
liveDataTranslateMarkup()
function; if you try to call it at another time, an error
occurs. The
dreamweaver.liveDataTranslate()
function performs the following operations:
•
Makes the animated image (that appears near the right edge of the Live Data window) play.
•
Listens for user input. If the Stop icon is clicked, the function returns immediately.
•
Accepts a single string argument from the caller. (This string is typically the entire source code
of the user’s document. It is the same string that is used in the next operation.)
•
Saves the HTML string from the user’s document as a temporary file on the live data server.
•
Sends an HTTP request to the live-data server, using the parameters specified in the Live Data
Settings dialog box.
•
Receives the HTML response from the live data server.
•
Removes the temporary file from the live data server.
•
Makes the animated image stop playing.
•
Returns the HTML response to the caller.
Arguments
•
A single string, which typically is the entire source code of the user’s current document.
000_DW_API_Print.book Page 333 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...