Project-SnowBall icon indicating copy to clipboard operation
Project-SnowBall copied to clipboard

Call native js functions from topaz

Open neimanpinchas opened this issue 1 year ago • 1 comments

Hi

I played arround a little with Topaz, and I like the language, (as i like rebol), I would like to start using it in place of coofffeescript, for web.

I am wondering how its possible to call native javascript code (getElementById, fetch, + many other js libs) from withn the rebol interpreter.

I am sure its possible as this is what the interpreter is doing to survive, but I wasn't able to get how to execute my own js code from the console

neimanpinchas avatar Jun 09 '23 18:06 neimanpinchas

Unfortunately, due to unrelated things, I stopped working on this back in 2011. It wouldn't be too hard to add a way to run JS code, but I'm not sure it's worth it given that a ton of other things are missing.

There's an active project though you may want to look at: https://github.com/ALANVF/Red.js

giesse avatar Jun 09 '23 18:06 giesse