Hmm. I'll have to do some experimenting. (as far as the threading goes)
if I can feed positional and vector data to a browser widget (or 2 or 3)
that has a javascript library for flocking/seeking/avoidance/ behaviors
(like boids) I a) won't have to convert a library I don't truly understand
to l
Refering to your last post (browser widget and threading): your solution
doesn’t work in the browser widget, indeed, although ‘do “anyFunction” in
widget “myBrowser” works perfectly, as long as anyFunction is not meant to
return anything).
> Le 25 mai 2016 à 19:20, Mike Bonner a écrit :
>
>
Actually not that complicated (I think). My javascript understanding is
pretty limited but..
As long as you have a defined handler in livecode, you can do interesting
things. If there is a function in your page that returns dataA and another
that returns dataB, you would just have to build up yo
mmm… yes, I’ll try something in that direction (except that in the real case it
will be a bit more complicated). A pity this beautiful widget has nothing more
straightforward to pick data from webpages (but perhaps it has, well hidden).
Thank you anyway, Mike !
Jacques
> Le 25 mai 2016 à 16:03,
Just experimented with things and found a way that works. There is
probably a more direct way using do "script" in browser directly, but I
haven't figured that out yet. In the interim..
I put this into the htmltext of a widget
Hi!
function testit () {
liveCode.myJSHandler("myMessage",12345)