site.getAppURLPrefixForSite()

Availability

Dreamweaver MX.

Description

Gets the value of the URL prefix that is extracted from the HTTP address defined in the Local Info section of the site definition dialog. It is the path that appears after the http://hostname:portnumber/.

Arguments

{ siteName }

The siteName argument, which is optional, is the name of the site for which you want to get the URL prefix. If you do not specify a tie, the function gets the URL prefix for the current site.

Returns

A string that contains the URL prefix of the currently selected site.

Example

var sitePrefix = site.getAppURLPrefixForSite();

 

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

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