User Tools

Site Tools


products:wiz550web:wiz550web_tutorial_en:tutorial_4

Tutorial 4: Get/Set the WIZ550web IP Settings

Overview


Tutorial 4 explains how to create a web page that can check the IP setting information of the WIZ550web module. Users can get guidance on how to check and change the IP setting information of the currently connected web server from the web page through this tutorial page.

How to create a web page may vary depending on the user's purpose.
This tutorial covers a sample web page provided by WIZnet.

Get the IP Settings


JavaScript Examples

getNetinfo()
function getNetinfo(){ 
	var oUpdate; 
	setTimeout(function(){
		oUpdate=new AJAX('get_netinfo.cgi',function(t){
			try{eval(t);}catch(e){alert(e);}
	});	 	 
	oUpdate.doGet();},300);	 
}  
NetinfoCallback()
function NetinfoCallback(o){
	$('txtIp').value=o.ip;
	$('txtGw').value=o.gw;
	$('txtSub').value=o.sub;
	$('txtDns').value=o.dns;
	if(typeof(window.external)!='undefined'){
		obj=$$_ie('input','dhcp');
	}else{
		obj=$$('dhcp');
	}
	for(var i=0; i<obj.length;i++){
		if(i==o.dhcp){
			obj[i].checked=true;
                        // function for Inputbox block when DHCP selected
			//netinfo_block(i);
			break;
		}
	}
}


products/wiz550web/wiz550web_tutorial_en/tutorial_4.txt · Last modified: 2017/05/15 14:22 by kei