User Guide
Site functions 279
site.getSiteForURL()
Availability
Dreamweaver MX.
Description
Gets the name of the site, if any, that is associated with a specific file.
Arguments
fileURL
■ The fileURL argument is the fully qualified URL (including the string "file://") for a
named file.
Returns
A string that contains the name of the site, if any, in which the specified file exists. The string
is empty when the specified file does not exist in any defined site.
site.getSites()
Availability
Dreamweaver 3.
Description
Gets a list of the defined sites.
Arguments
None.
Returns
An array of strings that represents the names of the defined sites, or an empty array if no sites
are defined.
000_DW_API_Print.book Page 279 Wednesday, July 20, 2005 11:58 AM