dom.siteRelativeToLocalPath()

Availability

Dreamweaver 8.

Description

This function 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

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.


 

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

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