eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLScriptEnvironment':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTMLScriptEnvironment


Inheritance:

   Object
   |
   +--HTMLScriptEnvironment

Package:
stx:libhtml
Category:
System-Documentation
Version:
rev: 1.15 date: 2016/09/22 13:11:57
user: cg
file: HTMLScriptEnvironment.st directory: libhtml
module: stx stc-classLibrary: libhtml
Author:
Claus Gittinger

Description:


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.


Instance protocol:

accessing
o  window
return the window object.
For now, that's the only defined (non-global) object.

evaluation
o  _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
o  _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.

o  _start

o  _stop



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Wed, 10 Aug 2022 12:07:27 GMT