Adobe 38040334 - Dreamweaver CS3 User Manual page 18

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

var selFile = document.theForm.menu.options[selIndex].value;
if (DWfile.getAttributes(selFile).indexOf('R') != -1){
delAnyway = confirm('This file is read-only. Delete anyway?');
if (delAnyway){
DWfile.remove(selFile);
}
}
}
DWfile.setAttributes()
Availability
Dreamweaver MX.
Description
This function sets the system-level attributes of a particular file.
Arguments
fileURL, strAttrs
• The
argument, which is expressed as a file:// URL, identifies the file for which you are setting the
fileURL
attributes.
• The
argument specifies the system-level attributes for the file that is identified by the
strAttrs
argument. The following table describes valid attribute values and their meaning:
Attribute Value
R
W
H
V
Acceptable values for the
strAttrs
You should not use
and
R
meaningless, and the file is set as writable (
exclusive. If you combine them,
If you specify
or
without specifying an
H
V
not changed. Likewise, if you specify
attribute for the file is not changed.
Returns
Nothing.
DWfile.write()
Availability
Dreamweaver 2.
Description
Read only
Writable (overrides
R
)
Hidden
Visible (overrides
)
H
string are
,
,
R
W
H
together because they are mutually exclusive. If you combine them,
W
). You should not use
W
becomes meaningless, and the file is set as visible (
H
or
read/write attribute, the existing read/write attribute for the file is
R
W
or
, without specifying an
R
W
,
,
,
,
, or
.
V
RH
RV
WH
WV
and
together because they are also mutually
H
V
or
visibility attribute, the existing visibility
H
V
DREAMWEAVER CS3
API Reference
fileURL
becomes
R
).
V
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents