QuimV wrote:I'm looking for the best way, fast and reliable, to pass values (numbers and strings) to a JavaScript piece of code and get the result of this code back in PB.
QuimV wrote:
I need to deal with javascript, ...
It is not possible to pass arguments from PB to JavaScript directly!
You need a "JavaScript engine" to execute the JavaScript.
Actually you need to pass an argument and the JavaScript to the "JavaScript engine".
Therefor it seems the best way to use WebGadget because the embedded browser uses its own "JavaScript engine"!
Why do you want to interact with a JavaScript? Is this necessary for your project? Why?
Do you want to give the user of your application the possibility to write additional code with JavaScript?
In this case I would search for a JavaScript engine, which could be embedded directly in to your application.
... or search for other scripting enginge like "LUA" ...
See also:
==>
http://www.purebasic.fr/english/viewtop ... lua+script
==>
http://www.purebasic.fr/english/viewtop ... lua+script
==> Embed JS Framework into PureBasic ==>
http://www.purebasic.fr/english/viewtop ... 12&t=63652