Enjoy BYOND? Contribute today!
Input in a Pop-UP
Feb 21 2008, 2:47 pm
Right so I created a HTML form that fits nicely inside of my pop-up broswer, but how do I make it submit to the game itself?
Feb 22 2008, 12:12 am
In a similar way you'd do with a regular link.
A regular BYOND link goes in the form of
is the reference to the object you want the link to use.
When you click the link, it will find the object
in the background) and it will execute it's
proc. You can then use that procedure to perform actions.
For HTML forms, it's only slightly differently. The code is like this:
<form action="byond://" method="get"> <input type="hidden" name="src" value="\ref[src]">
This will prepare your HTML form. Once a player submits the form it will execute the
text macro outputs a unique identifier for that object.
Keep in mind that you cannot change the method; you are bound to using the GET protocol, which has a limited ability to submit characters. Eventually the URL is going to become too large and it will trunicate the rest.
Copyright © 2015 BYOND. All rights reserved.
Terms of Service