eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptEnvironment':

Home

everywhere
www.exept.de
for:
[back]

Class: JavaScriptEnvironment


Inheritance:

   Object
   |
   +--JavaScriptEnvironment

Package:
stx:libjavascript
Category:
Languages-JavaScript-Framework
Version:
rev: 1.35 date: 2009/10/08 14:01:37
user: mb
file: JavaScriptEnvironment.st directory: libjavascript
module: stx stc-classLibrary: libjavascript

Class protocol:

queries
o  scriptingNamespace
return a namespace, in which the scripts global variables
are searched. Returning myself here, will make Math and Date
visible (maybe more in the future)


Instance protocol:

accessing
o  _argVariables

o  _beHTMLEnvironment

o  _defineFunction: aFunction as: selector

o  _defineVariable: name value: initialValue

o  _functions

o  _functions: aDictionary

o  _isHTMLEnvironment

o  _localVariables

o  _localVariables: aDictionary

o  _outStream

o  _outStream: aStream

o  _outerEnvironment

o  _outerEnvironment: anEnvironment

o  _topEnvironment

o  isReturnedFrom: something
isReturnedFrom := something.

o  receiver

builtin functions
o  alert: msg

o  confirm: msg

o  js_alert: msg

o  js_confirm: msg

o  print: msg

o  println: msg

error handling
o  doesNotUnderstand: aMessage

expression 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. javaScript) and invoke that
function.

o  _readEvalFrom: inputStream to: outputStream errorTo: errorStream

o  _readEvalFrom: inputStream to: outputStream errorTo: errorStream print: doPrint

o  _readEvalPrintFrom: inputStream to: outputStream errorTo: errorStream

o  exitWith: val

html-browser interaction
o  _start

o  _stop

queries
o  _isFunctionEnvironment

o  isInnerJavaScriptBlock

setup
o  _setupForWindow: aWindow


Private classes:

    AppletObject
    AppletsObject
    Array
    Date
    Document
    DocumentObject
    FormFieldObject
    FormObject
    FormsObject
    HistoryObject
    Math
    String
    WindowObject


ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 18:14:36 GMT