User Guide
294 Site
site.setSelection()
Availability
Dreamweaver 3.
Description
Selects files or folders in the active pane in the Site panel.
Arguments
arrayOfURLs
■ The arrayOfURLs argument is an array of strings where each string is a path to a file or
folder in the current site, which is expressed as a file:// URL.
Returns
Nothing.
site.siteRelativeToLocalPath()
Availability
Dreamweaver 8.
Description
Converts a site-relative URI reference to a local file path.
Arguments
siteRelativeURI
■ The siteRelativeURI attribute, which is required, is a string that contains the site-
relative URI.
Returns
A string, which specifies the path to a local file on your local computer.
Example
The following example
var filePath = site.siteRelativeToLocalPath("/myWebApp/myFile.xlml");
returns "C:\Inetpub\wwwroot\siteA\myFile.xml" based on your site mappings and HTTP
address specified in the Local info of the Site Definition dialog box.
NOTE
Omit the trailing slash (/) when specifying folder paths.
000_DW_API_Print.book Page 294 Wednesday, July 20, 2005 11:58 AM