You can use the params to see what arrives.
Most probably you didn't convert the parameters of the handler
in the JavaScript to arrays or strings.
LiveCode expects strings or arrays as params of javaScriptHandlers.
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)
on JS u,v,w -- a javaScriptHandler of widget "browser"
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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode