1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
7 <title>Add Dynamic DNS</title>
9 <link href="usr_layout.css" type="text/css" rel="stylesheet" /><script src="usr_layout.js" type="text/javascript"></script>
10 <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css"><script src="usr_menus_dropdown.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11 <link href="usr_device.css" type="text/css" rel="stylesheet" /><script src="usr_device.js" type="text/javascript"></script><link href="usr_91xx.css" type="text/css" rel="stylesheet" /><script src="usr_91xx.js" type="text/javascript"></script><script src="usr_resources.js" type="text/javascript"></script>
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
14 <script type="text/javascript">
18 function ddnsChange() {
19 with ( document.forms[0] ) {
20 var ddns = ddnsMode[ddnsMode.selectedIndex].value;
39 function hideDDNSInfo(hide) {
40 var status = 'visible';
43 if (document.getElementById) // DOM3 = IE5, NS6
44 document.getElementById('ddnsInfo').style.visibility = status;
46 if (document.layers) { // NS4
47 with ( document.forms[0] ) {
49 ddnsHostname.value = '';
51 ddnsHostname.value = 'Host name';
55 document.all.ddnsInfo.style.visibility = status;
60 function hideDynDNSInfo(hide) {
61 var status = 'visible';
64 if (document.getElementById) // DOM3 = IE5, NS6
65 document.getElementById('dyndnsInfo').style.visibility = status;
67 if (document.layers) { // NS4
68 with ( document.forms[0] ) {
70 dyndnsHostname.value = '';
72 dyndnsHostname.value = 'Host name';
76 document.all.ddnsInfo.style.visibility = status;
81 function hideTZOInfo(hide) {
82 var status = 'visible';
85 if (document.getElementById) // DOM3 = IE5, NS6
86 document.getElementById('tzoInfo').style.visibility = status;
88 if (document.layers) { // NS4
89 with ( document.forms[0] ) {
94 tzoEmail.value = 'Name';
95 tzoKey.value = 'Password';
99 document.all.ddnsInfo.style.visibility = status;
105 with (document.forms[0]) {
106 ddnsMode.selectedIndex = 0;
112 function btnApply(place) {
113 var loc = place + '?action=add&service=';
115 if ( place == "ddnsmngr.cmd" ) {
116 with ( document.forms[0] ) {
117 switch( ddnsMode[ddnsMode.selectedIndex].value ) {
132 switch( ddnsMode[ddnsMode.selectedIndex].value ) {
136 update_username = dyndnsUsername.value;
137 update_password = dyndnsPassword.value;
140 update_username = tzoEmail.value;
141 update_password = tzoKey.value;
145 if ( update_username.length == 0 ) {
146 if ( ddnsMode[ddnsMode.selectedIndex].value == 'dyndns' ||
147 ddnsMode[ddnsMode.selectedIndex].value == 'dtdns' ||
148 ddnsMode[ddnsMode.selectedIndex].value == 'noip' )
149 alert('Empty username.' );
151 alert('Invalid Email address.' );
154 loc += '&username=' + update_username;
156 if ( update_password.length == 0 ) {
157 if ( ddnsMode[ddnsMode.selectedIndex].value == 'dyndns' ||
158 ddnsMode[ddnsMode.selectedIndex].value == 'dtdns' ||
159 ddnsMode[ddnsMode.selectedIndex].value == 'noip' )
160 alert('Empty password.' );
162 alert('Invalid key.' );
165 loc += '&password=' + update_password;
167 if ( ddnsHostname.value.length == 0 ) {
168 alert('Please enter a host name.');
171 loc += '&hostname=' + ddnsHostname.value;
173 loc += '&iface=' + ddnsInterface[ddnsInterface.selectedIndex].value;
175 var code = 'location = "' + loc + '"';
182 <body onload="initMenu(); frmLoad();">
184 <script type="text/javascript">
185 writeHeader("Add Dynamic DNS");
190 <p>This page allows you to add a Dynamic DNS address from
191 selected dynamic DNS servers.</p>
193 <p><label for="">Dynamic DNS provider:</label>
194 <select name="ddnsMode" id="ddnsMode" onChange='ddnsChange()'>
195 <option value="dyndns">DynDNS.org</option>
196 <option value="dtdns">DtDNS.net</option>
197 <option value="noip">No-IP.com</option>
198 <option value="tzo">TZO</option>
205 <td><label for="ddnsHostname">Host name:</label></td>
206 <td><input type="text" name="ddnsHostname" id="ddnsHostname"></td>
209 <td><label for="">Interface:</label></td>
210 <td><select name="ddnsInterface" id="ddnsInterface">
211 <script type="text/javascript">
214 var interfaceInfo = '<%ejGetOther(wanInterfaceInfo, route)%>';
215 var interfaces = interfaceInfo.split("|");
217 for (var i = 0; i < interfaces.length; i++)
219 var names = interfaces[i].split("/");
220 document.write("<option value=\"" + names[1] + "\">");
221 document.writeln(interfaces[i]);
222 document.writeln("</option>");
224 document.writeln(" <option value=\"br0\">LAN/br0</option>");
233 <div id="dyndnsInfo">
234 <h3>Dynamic DNS Settings</h3>
237 <td><label for="dyndnsUsername">User name:</label></td>
238 <td><input type="text" length="50" name="dyndnsUsername" size="20" maxlen="64"></td>
241 <td><label for="dyndnsPassword">Password:</label></td>
242 <td><input type="text" length="50" name="dyndnsPassword" id="dyndnsPassword"></td>
248 <h3>TZO Settings</h3>
251 <td><label for="tzoEmail">E-mail:</label></td>
252 <td><input type="text" size="50" maxlength="200" name="tzoEmail" id="tzoEmail"></td>
255 <td><label for="tzoKey">Key:</label></td>
256 <td><input type="text" size="50" maxlength="100" name="tzoKey" id="tzoKey"></td>
261 <p><input type="button" value=" Add " onClick="btnApply('ddnsmngr.cmd');"></p>
265 <script type="text/javascript">