beautypg.com

Dwuri.makerelative(), Dwuri.chdir(), Dwuri.getfilename() – Adobe Dreamweaver API Reference CS5 User Manual

Page 292

background image

287

DREAMWEAVER API REFERENCE

Document

Last updated 8/27/2013

DWUri.makeRelative()

Availability
Dreamweaver CS5.

Description
Constructs a relative URI by finding the common parent from the URI passed as an argument.

Arguments
other

Specify a valid string or a

DWUri

object.

Returns
A Boolean:

true

if the operation succeeds.

DWUri.chDir()

Availability
Dreamweaver CS5.

Description
Changes to the specified directory. The string “

..

” is used to change to the parent directory.

Arguments
dir

Specify a valid string as a directory.

Returns
A Boolean:

true

if the operation succeeds.

DWUri.getFileName()

Availability
Dreamweaver CS5.

Description
Retrieves the filename from the URI object.

Arguments
stripExtension

A Boolean:

true

to remove the extension from the result. Specify

false

to return with extension. The default behavior

is to return with the extension. This argument is optional.