Chapter 3. WebView Scripting

Table of Contents
3.1. Pre-Loaded and Sample Scripts
3.2. Script Editor
3.3. Example Slide Show Script

There are two resources for learning about WebView Scripting:

3.1. Pre-Loaded and Sample Scripts

Several WebView scripts are installed with the DataHub archive. These are found in the installed content file location, under Content/Common/Scripts/Cogent. You can view these scripts by opening the Scripts tab in Design mode.

You can use the Script Explorer to browse the scripts:

Scripts whose names start with ex are example scripts. Those that start with wv contain helper functions that enable you to easily leverage advanced capabilities like element animation and slide shows. This interface is read-only, because none of these scripts should be edited.

You can edit an example (ex) script by first copying it to your user content file location, and modifying the copy. This way it will not be replaced by the default script when the DataHub program is updated. However, you should not edit any of the wv scripts like this, as that may lead to unexpected results.