Specifications
Chapter 25300
FWLaunch.execJsInFireworks()
Availability
Dreamweaver 3, Fireworks 3
Description
Passes the specified string of JavaScript to Fireworks for execution.
Arguments
javascriptOrFileURL
The argument is either a string of literal JavaScript or the path to a .js or .jsf file, which is
expressed as a file:// URL.
Returns
A cookie object if the JavaScript passes successfully or a nonzero error code that indicates one of
the following errors occurred:
• Invalid usage; javascriptOrFileURL is specified as null or an empty string, or the path to
the .js or .jsf file is invalid.
• File I/O error; 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 (3 or
later).
• Error launching Fireworks process; the function does not launch a valid version of Fireworks
(3 or later).
• User cancelled the operation.
FWLaunch.getJsResponse()
Availability
Dreamweaver 3, Fireworks 3
Description
Determines whether Fireworks is still executing the JavaScript passed to it by
FWLaunch.execJsInFireworks(), whether the script completed successfully, or whether an
error occurred.
Arguments
progressTrackerCookie
The argument is the cookie object that FWLaunch.execJsInFireworks() returns.
Returns
A string that contains the result of the script passed to FWLaunch.execJsInFireworks() if the
operation completed successfully,
null if Fireworks is still executing the JavaScript, or a nonzero
error code that indicates one of the following errors occurred:
• Invalid usage; a JavaScript error occurred as Fireworks executed the script.
• File I/O error; Fireworks cannot create a Response file because the disk is full.
• Error notifying Dreamweaver; the user is not running a valid version of Dreamweaver (3 or later).