0 Members and 1 Guest are viewing this topic.
What is your sevrer?....
<script src="AjaxRequest.js"></script><script>function getQueryResult(objname, host, port){ var obj = document.getElementById(objname); if (obj) { AjaxRequest.get( { 'url':'query.php?adr='+host+':'+port ,'onSuccess':function(req){ obj.innerHTML = req.responseText; } ,'onError':function(req){ obj.innerHTML = 'Could not load the query script.<br /><a href="'+req.url+'" target="_blank">'+req.url+'</a><br />Make sure you placed the script in the right folder.'; } Â } ); }}</script>
<div id="server1"></div><script>getQueryResult('server1', 'localhost', 20373);</script>
<div id="leoCTF"></div><script>getQueryResult('leoCTF', '85.214.35.115', 24274);</script>
obj = document.getElementById(objname);
var obj = document.getElementById(objname);
This is a known bug, sorry for that. I thought I changed the above code, but apparently I forgot (or something went wrong).change this: Code: [Select]obj = document.getElementById(objname);into:Code: [Select]var obj = document.getElementById(objname);And it should work fine ..
doesn't work T_T... first I create server 1 then server 2 but server 2 overwrite server 1 o.o! so the sever control panel shows only server #2