This repository has been archived on 2023-01-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
05_wickler/12_m1284p_WIZNET_HTTPServer_SDCARD_pages/WWW/netinfo.js

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);
}