More fun with JavaScript - Can I run a script if the panes are hidden?

K.V.
23 Aug 2017, 23:44When I hide the panes via request (Hide, "Panes)
, game.showpanes is still set to true.
Were this not the case, I wouldn't be trying to do this, but...
I'd like to check using JS.eval, then run a script if the panes are/aren't hidden.
Here's what I think is close (maybe), but it doesn't work:
JS.eval("$('#gamePanes:hidden').addText("Hidden");")
I'll try to take a break from learning JS after this one.
The Pixie
24 Aug 2017, 06:20JS can only send data from Quest to the interface not the other way around. You would need to call ASLEvent from the interface in JavaScript to get info the other way.

K.V.
24 Aug 2017, 17:40Oh, that sounds funky...
I'll just make sure I set game.showpanes
to true or false each time the panes are toggled for now, but I am learning how to utilize ASLEvents. (I just now read your wiki page on it enough times to make my own links that call an ASLEvent then use the HandleButtonClick function to run a script.)