Chapter 3 DynaScript Predefined Objects


document object

Object

Represents a document in your Web site. Each document can be a file or folder.

Syntax

To use a document's property:

document.propertyName

To use a document's method:

document.MethodName( parameter ) 

Description

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
Don't confuse the Dynamo document object and the JavaScript document object. The Dynamo document object supports a different set of properties and methods that are customized for working with databases.

Example

This example creates a new document called MyDoc in the Site folder:

<!--SCRIPT 
site.CreateDocument( "/site/MyDoc.stm","text", "my new document", "hello" );
-->

See also

"description property".

"size property".

"value property".

 


Copyright © 1999 Sybase, Inc. All rights reserved.