example type code:
mob
verb
test()
src << browse({"
<html>
<head>
<script language="javascript">
function loadurl(dest)
{
try
{
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP"); //BROKEN LINE OF CODE THAT DOESN'T WORK WITH BYOND
//new ActiveXObject("BYOND.request"); //New proposed object
}
catch (e) { /* do nothing */ }
xmlhttp.onreadystatechange = triggered;
xmlhttp.open("GET", dest);
xmlhttp.send(null);
}
function triggered()
{
if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200))
document.getElementById("output").innerHTML =xmlhttp.responseText;
else
document.getElementById("output").innerHTML ="ERROR";
}
</script>
</head>
<body>
<div id="output">
click here to load my resume into this div
<a href="#" onclick="javascript:loadurl('?src=\ref[src];action=refresh');">test 1</a><br>
<a href="?src=\ref[src];action=refresh">test 2</a>
</div>
No more div
</body>
</html>
"},"window=popup")
mob/Topic(href,href_list[])
if(href_list["action"] == "refresh")
world <<"BLAH"
var/test = src.refresh()
return
else ..()
datum/proc
refresh()
return {"TESTING"}