Adobe 38040334 - Dreamweaver CS3 User Manual page 326

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

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
function; if you try to call it at another time, an error occurs. The
lateMarkup()
weaver.liveDataTranslate()
• 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
string
• A single string, which typically is the entire source code of the user's current document.
Returns
An
object. This object is the same as the value that the
httpReply
clicks the Stop icon, the return value's
value is equal to the empty string. For more information on the
httpReply.data
API" on page 16.
dreamweaver.setLiveDataError()
Availability
Dreamweaver UltraDev 1.
Description
Specifies the error message that appears if an error occurs while the
executes in a translator. If the document that Dreamweaver passed to
server passes back an error message that is formatted using HTML. If the translator (the code that called
) determines that the server returned an error message, it calls
liveDataTranslate()
display the error message in Dreamweaver. This message appears after the
finishes executing; Dreamweaver displays the description in an error dialog box. The
function should be called only from the
Arguments
source
• The
argument is a string that contains source code, which is parsed and rendered in the error dialog box.
source
function performs the following operations:
httpReply.statusCode
liveDataTranslateMarkup()
dream-
function returns. If the user
MMHttp.getText()
value is equal to 200 (Status OK) and its
httpReply
liveDataTranslateMarkup()
liveDataTranslate()
setLiveDataError()
liveDataTranslateMarkup()
setLiveDataError()
function.
DREAMWEAVER CS3
API Reference
liveDataTrans-
object, see "The HTTP
function
contains errors, the
to
function
321

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents