beautypg.com

Dreamweaver.setlivedataerror(), Dreamweaver.setlivedatamode() – Adobe Dreamweaver API Reference CS5 User Manual

Page 358

background image

353

DREAMWEAVER API REFERENCE

Dynamic documents

Last updated 8/27/2013

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

httpReply

object. This object is the same as the value that the

MMHttp.getText()

function returns. If the user

clicks the Stop icon, the return value’s

httpReply.statusCode

value is equal to 200 (Status OK) and its

httpReply.data

value is equal to the empty string. For more information on the

httpReply

object, see

The HTTP

API

” on page 14.

dreamweaver.setLiveDataError()

Availability
Dreamweaver UltraDev 1.

Description
Specifies the error message that appears if an error occurs while the

liveDataTranslateMarkup()

function executes

in a translator. If the document that Dreamweaver passed to

liveDataTranslate()

contains errors, the server passes

back an error message that is formatted using HTML. If the translator (the code that called

liveDataTranslate()

)

determines that the server returned an error message, it calls

setLiveDataError()

to display the error message in

Dreamweaver. This message appears after the

liveDataTranslateMarkup()

function finishes executing;

Dreamweaver displays the description in an error dialog box. The

setLiveDataError()

function should be called

only from the

liveDataTranslateMarkup()

function.

Arguments
source

The source argument is a string that contains source code, which is parsed and rendered in the error dialog box.

Returns
Nothing.

dreamweaver.setLiveDataMode()

Availability
Dreamweaver UltraDev 1.

Description
Toggles the visibility of the Live Data window.