mob
verb
test()
src << browse({"
<html>
<head>
<script language="javascript">
function loadurl(dest)
{
try
{
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");
}
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 IN TRANSFER";
}
function test()
{
setTimeout("loadurl('?src=\ref[src];action=refresh')",100);
}
</script>
</head>
<body>
<div id="output">
click here to load my resume into this div
<a href=javascript:loadurl('byond://?src=\ref[src];action=refresh');>test 1</a><br>
<a href="?src=\ref[src];action=refresh">test 2</a>
</div>
</body>
</html>
"},"window=popup")
mob/Topic(href,href_list[])
if(href_list["action"] == "refresh")
world <<"BLAH"
return src.refresh()
else ..()
datum/proc
refresh()
return {"TESTING"}
Problem description:
Thats the whole project, now if I set the URL to try to open to be something like www.google.com it works... or if I click test 2 it works... but when I try the test 1 link it does not. Do you know of any reason for this?