You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

38 lines
652 B
JavaScript

function NetinfoCallback(o)
{
$('txtmac').value = o.mac;
$('txtip').value = o.ip;
$('txtgw').value = o.gw;
$('txtsn').value = o.sn;
$('txtdns').value = o.dns;
if(typeof(window.external)!='undefined')
{
obj = $$_ie('input', 'dhcp');
}
else
{
obj = $$('dhcp');
}
}
function getNetinfo()
{
var oUpdate;
setTimeout(function()
{
oUpdate = new AJAX('get_netinfo.cgi', function(t)
{
try
{
eval(t);
}
catch(e)
{
alert(e);
}
}
);
oUpdate.doGet();
}
, 1500);
}