Chapter 3 DynaScript Predefined Objects
Represents a document in your Web site. Each document can be a file or folder.
To use a document's property:
document.propertyName
To use a document's method:
document.MethodName( parameter )
The methods that you use to manipulate documents
are shared between the document
object
and the site
object.
The site object allows you to manipulate your Web site's documents. For example, use the following format to create a document:
site.CreateDocument(docName, documentType, description, content[,connectionName | connectionId])
For information on site.CreateDocument, site.DeleteDocument, or site.GetDocument, see "site object".
WARNING! | Caution |
This example creates a new document called MyDoc in the Site folder:
<!--SCRIPT
site.CreateDocument( "/site/MyDoc.stm","text", "my new document", "hello" );
-->
Copyright © 1999 Sybase, Inc. All rights reserved. |