I have a Tcl/Tk program (not a web browser) and want to run small
JavaScript scripts from it. These script shall have access to the
data in my Tcl/Tk program to read/write/modify them via a defined set
of Javascript functions like let's say SetMyValue("key","value") and
GetMyValue("key").
Is there a solution for this available?
If not, if have the following idea: I could take a JavaScript-C-Engine
like e.g. SpiderMonkey, extend it with some functions (SetMyValue,
GetMyValue) wrap Tcl bindings around and build it as a library (.so
or .dll). But I think that it takes some time so I'm looking for
alternatives.
I'll appreciate any advices.
I've already proposed to use Tcl instead of Javascript but without
sucess ...
Thanks in advance
Torsten
As far as I know, there is no way YET to communicate with JS. maybe
you are the one we have been waiting for ! says the great morph.
Please let me know if you managed to find an anwser.
George
O/H Torsten έγραψε:
AOLserver has a javascript module which uses SpiderMonkey:
http://aolserver.cvs.sourceforge.net/aolserver/nsjsapi/
Thanks
Torsten