MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spezifikationen Seite 278

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 277
Chapter 22278
DWfile.setAttributes()
Availability
Dreamweaver MX
Description
Sets the system-level attributes of a particular file.
Arguments
fileURL, strAttrs
fileURL identifies the file, which is expressed as a file:// URL, for which you are setting the
attributes.
strAttrs specifies the system-level attributes for the file that is identified by fileURL. The
following table describes valid attribute values and their meaning.
Acceptable values for the
strAttrs string are R, W, H, V, RH, RV, WH, or WV.
You should not use
R and W together because they are mutually exclusive. If you combine
them, R becomes meaningless, and the file is set as writable (W). You should not use H and V
together because they are also mutually exclusive. If you combine them,
H becomes
meaningless, and the file is set as visible (
V).
If you specify
H or V without specifying an R or W read/write attribute, the existing read/write
attribute for the file is not changed. Likewise, if you specify
R or W, without specifying an H or V
visibility attribute, the existing visibility attribute for the file is not changed.
Returns
Nothing.
DWfile.write()
Availability
Dreamweaver 2
Description
Writes the specified string to the specified file. If the specified file does not yet exist, it is created.
Arguments
fileURL, text {, mode}
The first argument, which is expressed as a file:// URL, is the file to which you are writing.
The second argument is the string to be written.
The third argument, if supplied, must be "append". If this argument is omitted, the contents
of the file are overwritten by the string.
Attribute Value Description
R Read only
W Writable (overrides R)
H Hidden
V Visible (overrides H)
Seitenansicht 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare