Dreamweaver 8.
This function converts a local file path to a site-relative URI reference.
localFilePath
localFilePath attribute, which is required, is a string that contains the path to a local file on your local computer.
A string, which specifies the site-relative URI.
The following example
var siteRelativeURI = site.localPathToSiteRelative("C:\Inetpub\wwwroot\siteA\myFile.cfm")
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.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/13_site7.htm