Adobe 38040334 API Reference - Page 200
dom.localPathToSiteRelative, dom.siteRelativeToLocalPath, dreamweaver.compareFiles
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 200 highlights
DREAMWEAVER CS3 195 API Reference dom.localPathToSiteRelative() Availability Dreamweaver 8. Description This function converts a local file path to a site-relative URI reference. Arguments localFilePath • The localFilePath attribute, which is required, is a string that contains the path to a local file on your local computer. Returns A string, which specifies the site-relative URI. Example The following example returns "/myWebApp/myFile.cfm", based on your site mappings and the HTTP address specified in the Local Info section of the Site Definition dialog box. var siteRelativeURI = site.localPathToSiteRelative("C:\Inetpub\wwwroot\siteA\myFile.cfm") dom.siteRelativeToLocalPath() Availability Dreamweaver 8. Description This function 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 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.