Hi.
If you use above code, you'll meet failure to authentication because SZ an ZD have different form code.
----------------------------------------------
Wireless Internet Service
function get_param(name)
{
if (location.href.indexOf("?") >= 0)
{
var query=location.href.split("?")[1];
var params=query.split("&");
for (var i = 0; i < params.length; i ++) {
value_pair=params[i].split("=");
if (value_pair[0] == name)
return unescape(value_pair[1]);
}
}
return "";
}
function get_sip() {
var sip = get_param("sip");
//var sip = "172.21.144.65"; -----> if you need to static ip, write the ip here
if (sip.indexOf(":") < 0) { // IPv4 address
return sip;
} else { // IPv6 address
return '[' + sip + ']';
}
}
Wireless Internet Service for SmartZone
document.write('
----------------------------------------------
Above code will be parsing to controller ip automatically.
Regards.