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.
		
		
			
		
		
		
		
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			652 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			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);
 | |
| }
 |