How to diagnose browser widget JS handlers failing silently?
keith.clarke at me.com
Fri Nov 23 15:03:58 EST 2018
Thanks for the response, Herman.
Indeed, your test scripts fail in my situation - so I’m going to have to create a simpler test-bed.
> On 14 Nov 2018, at 16:34, hh via use-livecode <use-livecode at lists.runrev.com> wrote:
> You can use the params to see what arrives.
> Most probably you didn't convert the parameters of the handler
> So "combine" on the LC side and/or ".toString()" on the JS side are
> your friends.
> Example test:
> -- script of the widget (or above it in the message path)
> if u is an array then combine u with ":"
> put u & cr & v & cr & w
> end JS
> on mouseUp
> do "var x=[1,2,3], y='hello'; " & \
> "liveCode.JS(x, y, x.toString())" in widget "browser"
> end mouseUp
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode