MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 257

Dreamweaver api reference
Table of Contents

Advertisement

Returns
A string, which specifies the site URL prefix.
Example
The following example gets the site URL prefix for the current document:
var currentDOM = dw.getDocumentDOM();
var sitePrefix = dom.getSiteURLPrefixFromDoc();
dom.localPathToSiteRelative()
Availability
Dreamweaver 8.
Description
This function converts a local file path to a site-relative URI reference.
Arguments
localFilePath
The
localFilePath
local file on your local computer.
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"
specified in the Local Info section of the Site Definition dialog box.
dom.siteRelativeToLocalPath()
Availability
Dreamweaver 8.
Description
This function converts a site-relative URI reference to a local file path.
attribute, which is required, is a string that contains the path to a
, based on your site mappings and the HTTP address
Site functions
257

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver 8

Table of Contents