How to diagnose browser widget JS handlers failing silently?
hh at hyperhh.de
Wed Nov 14 11:34:06 EST 2018
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
-- 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
do "var x=[1,2,3], y='hello'; " & \
"liveCode.JS(x, y, x.toString())" in widget "browser"
More information about the use-livecode