Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
Calling Functions
If you need to call more than a few lines of code, you can load a script file using the scriptFile attribute of the VIEW element, and call the functions in the script. You can load more than one file per view:
scriptFile = "myfile1.js;myfile2.js;myfile3.js"
After the script files are loaded, you can call functions in them from inside your View section. For example, to call a function called myfunction when something is clicked, type the following:
onclick = "JScript: myfunction()"
Note If you have more than one view, only the functions in files loaded into the current view are available to the XML and JScript code running with the current view. Files loaded in other views are not in scope with the current view.
See Also
| Previous | Next |