mob
Topic(href, list/href_list)
..()
var/action = href_list["action"]
var/value = href_list["value"]
switch(action)
if("Meep")
world<<"MEEP [value]"
if("Close")
src << browse(null, "window=Mee")
verb
Show_brower_text()
var/text = {"
<html>
<head>
<title>Mee</title>
<script language="javascript">
function send(action, value){
window.location="byond://?src=\ref[src]&action="+action+"&value="+value;
}
</script>
</head>
<body>
The text inside this window has a black background, with a white font colour. <br />
The text is inside a pop-up window, which is sized 500x300.
<br />
<button disabledclick="send('Meep','a');">Meep</button>
<button disabledclick="send('Close','a');">Close</button>
</body>
</html>
"}
src << browse(text, "window=Mee;size=500x300")
That is the code I am currently using, adapted from the Unknown Person's tutorial. At the moment I can click either of the buttons, and they "click in" (graphically) but nothing else happens.
~Ease~