ID:175856
 
I've been trying to think of some way to get JavaScipt to interact with byond but nothing comes to mind. I've seen it done before (unless I was hallucinating) so I know it's possible. A particular example I'd like to see is how to use onChange in a form to alter other elements in the form that can then be "submit"ed as usual. I know how to do it on a webpage, I just can't figure out how to get it to interact with/change byond variables.
English wrote:
I've been trying to think of some way to get JavaScipt to interact with byond but nothing comes to mind. I've seen it done before (unless I was hallucinating) so I know it's possible. A particular example I'd like to see is how to use onChange in a form to alter other elements in the form that can then be "submit"ed as usual. I know how to do it on a webpage, I just can't figure out how to get it to interact with/change byond variables.

Basically I think you'd have to navigate to a byond://? link that had a specific topic, and then use that in client/Topic() to do what you wanted.

I'm a little rusty on JavaScript, so I can't write such a function for you off the top of my head.

However this does have a catch: JavaScript must be enabled in IE, at least in the zone where a BYOND game's page would appear.

Lummox JR
In response to Lummox JR
That should give me enough to tinker with, thanks again :)