280
Site
site.getSiteURLPrefix()
Availability
Dreamweaver 8.
Description
Gets the site URL prefix that is extracted from the HTTP Address defined in Local Info
section.
Arguments
None.
Returns
A string that contains the site URL prefix.
Example
sitePrefix = getSiteURLPrefix();
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 280 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...