|
Class: HTMLScriptEnvironment
Object
|
+--HTMLScriptEnvironment
- Package:
- stx:libhtml
- Category:
- System-Documentation
- Version:
- rev:
1.17
date: 2024/03/26 13:06:52
- user: cg
- file: HTMLScriptEnvironment.st directory: libhtml
- module: stx stc-classLibrary: libhtml
whenever a script is encountered in a document,
an anonymous subclass of myself is created and a single instance of
it. The scripts variables are defined as instance variables, the methods
are installed as instance methods.
This is the script-object, which does all the smalltalkScript stuff.
For javaScript, the mechanism is similar, using an instance of
JavaScriptEnvironment.
copyrightCOPYRIGHT (c) 1996 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
window
-
return the window object.
For now, that's the only defined (non-global) object.
evaluation
-
_evaluateAction: aString with: aComponentName
-
invoked when some HTML-element (such as a button) with an ONCLICK
action is pressed. This is supposed to parse the passed string as
an expression in my language (i.e. smalltalkScript) and invoke that
function.
setup
-
_setupForWindow: aWindow
-
invoked after creation and definition of all my methods;
this must setup the object-tree as visible to the script;
i.e. window
view
document
images
applets
forms
links
anchors
location
history
frames
This is (for now) very rudimentary.
-
_start
-
-
_stop
-
|