User Guide

Fireworks functions 345
fw.updateHTML()
Availability
Fireworks 4.
Usage
fw.updateHTML(doc, htmlUrl, bRecoverFromError)
Arguments
doc A Document object that specifies the document to be used for updating the HTML
(see “Document object” on page 14). If
doc is null, the active document is used.
htmlUrl The filename of the HTML file to update, which is expressed as a file://URL. To
force Fireworks to display the Update HTML dialog box, pass
null for htmlUrl. If you pass
null for htmlUrl, bRecoverFromError is ignored.
bRecoverFromError If bRecoverFromError is true and the HTML update encounters an
error, Fireworks displays a Confirmation dialog box and attempts to recover. If it is
false,
Fireworks fails without notifying the user if it encounters an error.
Returns
A Boolean value: true if the HTML was updated; false otherwise.
Description
Updates the HTML that was previously exported from Fireworks.
Example
The following command updates the images in an HTML file, using the current document.
fw.updateHTML(null, "file:///C|/mysite/nav.htm", true);
fw.writePanelStateToFile()
Availability
Fireworks MX.
Usage
fw.writePanelStateToFile(filepath)
Arguments
filepath A string that identifies the destination XML file in the format file://URL.