beautypg.com

Dom.getdefaultassetfolder() – Adobe Dreamweaver API Reference CS5 User Manual

Page 342

background image

337

DREAMWEAVER API REFERENCE

Page content

Last updated 8/27/2013

Returns
An array of strings that are expressed as file://URLs. Each string represents a file that was included in the head of the
document through a script or a link tag.

Example

function objectTag()

{

.
.
.
var dom = dw.getDocumentDOM();
var assetList = new Array();
var assetInfo = new AssetInfo("Objects/Ajax/Accordion.css",

"Objects/Ajax/Accordion.css",
"Accordion.css", "link");

assetList.push(assetInfo);
assetInfo = new AssetInfo("Objects/Ajax/Accordion.js", "Accordion.js",

"javascript");

assetList.push(assetInfo);
assetInfo = new AssetInfo("Objects/Ajax/Images", "Images", "");
assetList.push(assetInfo);
dom.copyAssets(assetList);
return retVal;

}

dom.getDefaultAssetFolder()

Availability
Dreamweaver CS3.

Description
Gets the default asset folder of the document.

Arguments
None.

Returns
A string that is the default asset folder name.

Example

function objectTag()

{
.
.
.
var defaultAssetFolder = dom.getDefaultAssetFolder();
.
.
.
return retVal;
}