Script Editor |
Applies to HTML Viewer, IE Browser publications. The Script Editor is the main place where you edit HEScript scripts.
Note that the script editor is also automatically displayed when you import a script.
The script appears in the main edit box. Description of the behavior
Just make your modifications to the script. Then to ensure there is no error, click on Check in the toolbar. The Check command actually pre-compiles the script in order to ensure there is no syntax error. Thus you can easily find errors:
When your modifications are finished, you can save the script by clicking on Save. Before the script is saved, it is first pre-compiled (like if you clicked on Check) and only if it does not contain any syntax error, the editor is closed and the script is saved. If an error is found, the script editor will not close! If you want to close the editor without saving, click on Discard.
Only error-free scripts can be saved to the project: that's why scripts are first pre-compiled when you click on Save or when scripts are imported. This is a security: since scripts are definitively compiled and linked during the publication's compilation, it is better that they are already syntax-error-free (at least).
|