User Guide

Enablers 457
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
A Boolean value: true if all the following conditions are true; false otherwise:
A remote site has been defined.
If a document window has focus, the file is part of a local site and is not already checked out;
or, if the Site panel has focus, one or more files or folders are selected and at least one of the
selected files is not already checked out.
The Check In/Check Out feature is turned on for the site.
site.canCloak()
Availability
Dreamweaver MX.
Description
Determines whether Dreamweaver can perform a Cloaking operation.
Arguments
siteOrURL
The siteOrURL argument must be the site keyword, which indicates that the canCloak()
function should act on the selection in the Site panel or the URL of a particular folder, which
indicates that the
canCloak() function should act on the specified folder and all its contents.
Returns
A Boolean value: true if Dreamweaver can perform the Cloaking operation on the current site or
the specified folder;
false otherwise.
site.canConnect()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can connect to the remote site.
Arguments
None.
Returns
A Boolean value: true if the current remote site is an FTP site; false otherwise.
000_DW_API_Print.book Page 457 Wednesday, August 20, 2003 9:14 AM