[9:32]<rjb> js> defineClass('org.mozilla.javascript.tools.shell.Environment'); [9:32]<rjb> js> var e = new Environment(this); [9:33]<rjb> (am i doing this right?) [9:34]<zumbrunn> I don't even know what defineClass does [9:35]<zumbrunn> (reading about it now) [9:36]<rjb> well i am getting back an object with some useful data in it [9:37]<zumbrunn> what is an "extension" in that context? [9:37]<rjb> js> e['user.name']; [9:37]<rjb> rjb [9:37]<rjb> i think it means a java class that extends ScriptableObject [9:37]<zumbrunn> ok [9:38]<rjb> which probably means it makes some new kind of 'builtin' js object for you [9:46]<rjb> btw there exists a Continuation object in rhino's default global scope, but i'm not quite sure what can be done with it [9:47]<rjb> (actually Environment also exists by default, you don't need the defineClass call to use it) [9:49]<zumbrunn> http://dev.helma.org/wiki/Continuations/ [9:53]<rjb> thx [9:54]<rjb> i thought so, but when i tried it it didn't seem to work [9:54]<rjb> maybe i was doing something wrong [10:00]<rjb> btw here http://helma.pastebin.com/m79512c00 is my very simpleminded launcher script for the rhino shell [10:11]<rjb> seems one could also use org.mozilla.javascript.tools.shell.JSConsole [10:12]<rjb> but i don't think it's as clever as a readline-enabled terminal [10:31]<zumbrunn> I just have the following in my .bash_profile file: [10:31]<zumbrunn> alias jsfile='java org.mozilla.javascript.tools.shell.Main' [10:31]<zumbrunn> alias jsdebug='java org.mozilla.javascript.tools.debugger.Main' [10:31]<zumbrunn> alias js='java org.mozilla.javascript.tools.shell.Main -e' [10:36]<zumbrunn> oh... I see, thanks! [10:39]<rjb> note that you can use a * in the classpath to use all the jars in a folder [10:40]<rjb> (but quote-protecting it from the shell) [10:42]<rjb> what i can't figure out though is how to make rhino execute a script at startup, and continue in the shell [10:42]<rjb> i mean, automate calling load('foo.js') [10:55]<rjb> for interactive mode [13:18]<midnightmonster> any hints or code samples for how one might actually use continuations? [13:50]<zumbrunn> I believe I've once seen an introduction about continuations in rhino written by the cocoon folks [13:51]<zumbrunn> but I don't seem to be able to find it anywhere right now [13:54]<zumbrunn> maybe I was just looking for this: [13:54]<zumbrunn> http://wiki.apache.org/cocoon/RhinoWithContinuations [14:00]<midnightmonster> does this still require a special rhino? [14:01]<zumbrunn> no, I don't think so [14:27]<midnightmonster> *reading* my head is going to explode, but in a good way. [23:59]<ex5326> Hello, could anyone point out some helma / ajax examples?