MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spezifikationen Seite 283

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 282
The HTTP API 283
Returns
An object that represents the reply from the server. The data property of this object is a string
that contains the location where the file is saved, which is expressed as a file:// URL. Normally the
statusCode property of the object contains the status code that is received from the server.
However, if a disk error occurs while Dreamweaver is saving the file on the local drive, the
statusCode property contains an integer that represents one of the following error codes if the
operation is not successful:
1: Unspecified error
2: File not found
3: Invalid path
4: Number of open files limit reached
5: Access denied
6: Invalid file handle
7: Cannot remove current working directory
8: No more directory entries
9: Error setting file pointer
10: Hardware error
11: Sharing violation
12: Lock violation
13: Disk full
14: End of file reached
Example
The following code gets an HTML file, saves all the files in the Configuration/Temp folder, and
then opens the local copy of the HTML file in a browser:
var httpReply = MMHttp.getFile("http://www.dreamcentral.com/¬
people/profiles/scott.html",
false);
if (httpReply.statusCode == 200){
var saveLoc = httpReply.data;
dw.browseDocument(saveLoc);
}
Seitenansicht 282
1 2 ... 278 279 280 281 282 283 284 285 286 287 288 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare