User Guide
258 Site
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
var filePath = siteRelativeToLocalPath("/myWebApp/myFile.xml");
returns "C:\Inetpub\wwwroot\siteA\myFile.xml", based on your site mappings and the
HTTP address specified in the Local Info section of the Site Definition dialog box.
dreamweaver.compareFiles()
Availability
Dreamweaver 8.
Description
This function launches the file comparison tool that the user installed in the Diff section of
the Preferences dialog box.
Arguments
file1, file2
■ The file1 attribute, which is required, is a string that contains the full path to the first
file to compare.
■ The file2 attribute, which is required, is a string that contains the full path to the second
file to compare.
Returns
Nothing.
Example
The following example compares two files, red.htm and blue.htm:
dw.compareFiles(hc:\data\red.htm", "e:\data\blue.htm");
000_DW_API_Print.book Page 258 Wednesday, July 20, 2005 11:58 AM