beautypg.com

Fwlaunch.execjsinfireworks(), Fwlaunch.getjsresponse() – Adobe Dreamweaver API Reference CS5 User Manual

Page 39

background image

34

DREAMWEAVER API REFERENCE

Fireworks integration

Last updated 8/27/2013

FWLaunch.execJsInFireworks()

Availability
Dreamweaver 3, Fireworks 3.

Description
This function passes the specified JavaScript, or a reference to a JavaScript file, to Fireworks to execute.

Arguments

javascriptOrFileURL

The

javascriptOrFileURL

argument, which is expressed as a file:// URL, is either a string of literal JavaScript or

the path to a JavaScript file.

Returns
A cookie object if the JavaScript passes successfully or a nonzero error code that indicates one of the following errors
occurred:

Invalid usage, which indicates that the

javascriptOrFileURL

argument is specified as a

null

value or as an empty

string, or the path to the JS or JSF file is invalid.

File I/O error, which indicates that Fireworks cannot create a Response file because the disk is full.

Error notifying Dreamweaver that the user is not running a valid version of Dreamweaver (version 3 or later).

Error starting Fireworks process, which indicates that the function does not open a valid version of Fireworks
(version 3 or later).

User cancelled the operation.

FWLaunch.getJsResponse()

Availability
Dreamweaver 3, Fireworks 3.

Description
This function determines whether Fireworks is still executing the JavaScript passed to it by the

FWLaunch.execJsInFireworks()

function, whether the script completed successfully, or whether an error occurred.

Arguments

progressTrackerCookie

The

progressTrackerCookie

argument is the cookie object that the

FWLaunch.execJsInFireworks()

function

returns.

Returns
A string that contains the result of the script passed to the

FWLaunch.execJsInFireworks()

function if the operation

completes successfully, a

null

value if Fireworks is still executing the JavaScript, or a nonzero error code that indicates

that one of the following errors occurred:

Invalid usage, which indicates that a JavaScript error occurred while Fireworks executed the script.