234
Chapter 13: Site
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.
site.importSite()
Availability
Dreamweaver MX.
Description
Creates a Dreamweaver site from an XML file. During import, if the folder that is specified by the
localroot
attribute of the
<localinfo>
element does not exist on the local computer,
Dreamweaver prompts for a different local root folder. Dreamweaver behaves the same way when
it tries to locate the default images folder that is specified by the
imagefolder
attribute of the
<localinfo>
element.
Arguments
fileURL
•
The
fileURL
argument is a string that contains the URL for the XML file. Dreamweaver uses
this XML file to create a new site. If
fileURL
is an empty string, Dreamweaver prompts the
user to select an XML file to import.
Returns
A Boolean value:
true
if the named XML file exists and if the site is created successfully;
false
otherwise.
000_DW_API_Print.book Page 234 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...