Document Developer - instructions > Scripting

Scripting
You can use scripting in your document by attaching scripts to the objects. Scripts must be written in the StreamServe scripting language. For information on the StreamServe scripting language and the available script functions, see the StreamServe Scripting reference.
Scripts are executed when the StoryTeller Process is run through the StreamServer. When you add a script to an object in the document, you must specify if the script is executed before the object is processed or afterwards.
Adding a script
StoryTeller specific functions
There are a number of StoryTeller scripting functions that are used for the following tasks:
For more information about the StoryTeller script functions, see StoryTeller functions in the StreamServe Scripting reference.
 
See the StreamServe Scripting reference for the functions included in these groups. (The page handling functions are found under General functions).
However, the page() and pages() functions can be used in StoryTeller.
Note:
The pages() function must be used within the context of a Content Dependent Fragment to return the total number of pages in the document.
In addition, you can not add scripts after, or use the Skip() function, on a Repeater, table cell, or on a Story reference.
OpenText StreamServe 5.6 Updated: 2013-03-01