274
Site
Description
Determines the path to the remote files on the application server that is defined for the
current site. The current site is the site that is associated with the document that currently has
focus. If no document has focus, the site that you opened in Dreamweaver is used.
Arguments
None.
Returns
If the access type to the application server file is
local/network
, this function returns a path;
otherwise, this function returns an empty string.
site.getAppURLPrefixForSite()
Availability
Dreamweaver MX.
Description
Gets the value of the URL prefix that is extracted from the HTTP address defined in the
Local Info section of the site definition dialog. It is the path that appears after the http://
hostname
:
portnumber
/.
Arguments
{ siteName }
The
siteName
argument, which is optional, is the name of the site for which you want to get
the URL prefix. If you do not specify a tie, the function gets the URL prefix for the current
site.
Returns
A string that contains the URL prefix of the currently selected site.
Example
var sitePrefix = site.getAppURLPrefixForSite();
NO
T
E
ColdFusion Component Explorer uses this function; see
site.getAppServerAccessType()
and
site.getLocalPathToFiles()
.
000_DW_API_Print.book Page 274 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...