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.17 date: 2024/03/26 13:06:52
user: cg
file: HTMLScriptEnvironment.st directory: libhtml
module: stx stc-classLibrary: libhtml

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.

copyright

COPYRIGHT (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.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Tue, 03 Dec 2024 18:05:32 GMT