Executing Javascript Commands - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide
Reload all extensions reloads the JavaScript functions defined in all currently loaded extension
modules. The currently-defined objects and variables are not affected by this command.
This command does not execute any code that is not within a function body. It does not reload static
data that is defined in the Main.html file by tags like the <jsxmenu> tag, reinitialize any JavaScript
global variables defined by the Main.html file, or call the initializeModule global function
For debugging purposes, you can call the initializeModule function yourself from the JavaScript
Debugger window, or re-execute your extension's global JavaScript code. However, to reload an
extension completely, you must quit GoLive and restart it.

Executing JavaScript commands

You can use the JavaScript Debugger window's command line to enter and execute Javascript code
interactively. To execute the statement you have entered, press E
If you have installed any extension that enables debugging, the checkbox to the right of the Module
selector opens the full debugger; see
When the full debugger is open, commands that you enter on the command line execute within the stack
scope of the line highlighted in the Stack Trace view, with a timeout of one second. If a command takes
longer than one second to execute, GoLive terminates it and generates a timeout error.
The command line accepts any JavaScript code, making it very convenient to use for inspecting or
changing the contents of variables. To list the contents of an object as if it were JavaScript source code,
enter the command object .toSource() .
Adobe GoLive CS2 SDK
The Internal JavaScript Source
Debugging Scripts
.
NTER
Debugger.
172

Advertisement

Table of Contents
loading

Table of Contents