Arguments: |
|
---|
Bind a listener for events from this GUI.
Call a method in the GUI context. This is just a convenience wrapper around eval which will build the string to eval automatically from the method arguments.
Example: var x = 7; var st = ‘hello “Bob”’; gui.call(‘myfunc’, x, st); is equivalent to gui.guiEval( “myfunc(7, ‘hello “Bob”’);” );
Shows the GUI window.
Arguments: |
|
---|
Evaluate the Javascript string inside the GUI context.
Hides the GUI window.
Arguments: |
|
---|
Bind a listener for exception events. Listener should have the form fn(message, file, linenum).
Arguments: |
|
---|
Set the value of a variable in the GUI context. This is just a convenience wrapper around eval which will build the string to eval automatically from the arguments.
Example: gui.set(‘myvar’, 17) is equivalent to gui.eval(‘var myvar = 17;’);
Shows the GUI window.
Get the current URL. Should only be used on browsers, not regular GUIs, since the GUI URL won’t be meaningful.
param string name: the name of the variable returns: a placeholder object which gets converted to
rtype: | object |
---|
Create an object which can be used to specify a variable name to GUI.call and GUI.set. Since strings are converted to string literals, it isn’t possible to specify variable names in these calls without this method.