site.siteRelativeToLocalPath()

Availability

Dreamweaver 8.

Description

Converts a site-relative URI reference to a local file path.

Arguments

siteRelativeURI

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.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/13_sit81.htm