dom.localPathToSiteRelative()

Availability

Dreamweaver 8.

Description

This function converts a local file path to a site-relative URI reference.

Arguments

localFilePath

Returns

A string, which specifies the site-relative URI.

Example

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