beautypg.com

Site.cloak(), Site.comparefiles() – Adobe Dreamweaver API Reference CS5 User Manual

Page 229

background image

224

DREAMWEAVER API REFERENCE

Site

Last updated 8/27/2013

Description
Runs a target browser check on the selected files.

Arguments
None.

Returns
Nothing.

site.cloak()

Availability
Dreamweaver MX.

Description
Cloaks the current selection in the Files panel or the specified folder.

Arguments
siteOrURL

The siteOrURL argument must contain one of the following two values:

The keyword

"site"

, which indicates that

cloak()

should act on the selection in the Files panel.

The URL of a particular folder, which indicates that

cloak()

should act on the specified folder and all its contents.

Returns
Nothing.

Enabler
See “

site.canCloak()

” on page 521.

site.compareFiles()

Availability
Dreamweaver 8.

Description
This function launches the Diff tool integration application to compare two files.

Arguments
url

The url argument, which is required, must contain one of the following two values:

The keyword

"site"

, which indicates that

compare()

should act on the selection in the Files panel.

The URL of a local file to compare with its remote version.