User Guide

460 Chapter 19: Enablers
site.canOpen()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can open the files or folders that are currently selected in the Site
panel.
Arguments
None.
Returns
A Boolean value: true if any files or folders are selected in the Site panel; false otherwise.
site.canPut()
Availability
Dreamweaver 3.
Description
Determines whether Dreamweaver can perform a Put operation.
Arguments
siteOrURL
The siteOrURL argument must be the site keyword, which indicates that the function
should act on the selection in the Site panel, or the URL for a single file.
Returns
One of the following values:
If the argument is the keyword site, returns the value true if any files or folders are selected
in the Site panel and a remote site has been defined; otherwise
false.
If the argument is a URL, returns the value true if the document belongs to a site for which a
remote site has been defined; otherwise
false.
site.canRecreateCache()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform a Recreate Site Cache operation.
Arguments
None.
000_DW_API_Print.book Page 460 Wednesday, August 20, 2003 9:14 AM