Wenn ich meinen D-Link 624+ Router per Webseiten (192.168.0.1) aufrufe und konfigurieren möchte gibt es bei eingen Seiten Problem: Bei der WLAN Seite passiert nach Eingabe neuer Werte (Verschlüsselung, Schlüsselart und Schlüssel) und Betätigen des "Apply" Buttons nichts, die Werte werden nicht übernommen, im IE geht das. Es hat etwas mit dem Javascript zu tun, das ist aber für mich schon Grauzone. Komisch ist, das bei bestimmten Seiten alles geht! Ich verwende die Firmware 1.19, wenn jemand hier den gleichen hat und etwas mehr von Java versteht, kann er sich ja vielleicht einen Reim drauf machen.
D-Link Router, Konfiuguration funktioniert mit FF nicht
-
Lonerider -
28. September 2004 um 12:21 -
Erledigt
-
-
Erstmal: Javasript ist nicht Java. Die beiden Sachen haben nichts miteinader zu tun.
Ich hatte mal ein ähnliches Problem mit meinem Netgear-Router. Ich konnte die Webkonfigurationsseite nur mit dem IE öffnen. Ein Downgrade zu einer älteren Firmware hat das Problem bei mir behoben. Vielleicht mal bei D-Link schauen bzw. den Support dort fragen.
-
1. Java hat überhaupt nichts mit Javascript zu tun.
2. Möglicherweise verwendet der Router Javascript-Anweisungen mit denen nur der IE klarkommt. Um das zu überprüfen könntest du mal den Quelltext der Seite (Ansicht -> Seitenquelltext anzeigen) hier posten.
Gruß
Werner -
Hier ist er: (Für mich nur Bahnhof), scheint etwas grösseres zu sein ;-))
<HTML>
<HEAD>
<TITLE>DI-624+</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<script language="JavaScript" src="public.js"></script>
<script language="JavaScript">
var wep_key_len = 5;
var wep_key_type = 1;function chk_channel()
{
var form1 = document.getElementById("form1");if(form1.enable[1].checked == true)
{
form1.channel.disabled = true;
form1.auth_type[0].disabled = true;
form1.auth_type[1].disabled = true;
form1.auth_type[2].disabled = true;
form1.auth_type[3].disabled = true;}
else{
form1.channel.disabled = false;
form1.auth_type[0].disabled = false;
form1.auth_type[1].disabled = false;
form1.auth_type[2].disabled = false;
form1.auth_type[3].disabled = false;
}
}function check_sharekey(){
var form1 = document.getElementById("form1");
if (form1.auth_type[1].checked && form1.wep_type[1].checked){
alert("The WEP can not be disable when the Authentication Type is in the Shared Key mode.");
return false;
}else {
return true;
}
}function check_wpa(){
var form1 = document.getElementById("form1");
var enable_8021x = 0;
var psk_value = form1.wpapsk1.value;if (form1.auth_type[2].checked){
return true;
}
else if (form1.auth_type[3].checked){
if (psk_value.length < 8){
alert("The length of Passphrase must be at least 8 characters.");
return false;
}else{
if (psk_value != form1.wpapsk2.value){
alert("The Confirmed Passphrase does not match the Passphrase.");
return false;
}else{
return true;
}
}
}else{
return true;
}
}function show_wpa(){
var is_disabled;
var form1 = document.getElementById("form1");
var seting_wpa = document.getElementById("seting_wpa");
var seting_wpa_psk = document.getElementById("seting_wpa_psk");
var seting_wep = document.getElementById("seting_wep");if (form1.auth_type[2].checked form1.auth_type[3].checked){
seting_wep.style.display = "none";if (form1.auth_type[3].checked){
seting_wpa_psk.style.display = "";
seting_wpa.style.display = "none";
}else{
seting_wpa_psk.style.display = "none";
seting_wpa.style.display = "";
}
is_disabled = true;
}else{
seting_wpa.style.display = "none";
seting_wep.style.display = "";
seting_wpa_psk.style.display = "none";is_disabled = false;
}form1.wep_type[0].disabled = is_disabled;
form1.wep_type[1].disabled = is_disabled;
}function isHex(){
var result = true;
var form1 = document.getElementById("form1");
var temp_key;
if (form1.wep_key_type.value == "0"){
for (i = 1; i < 5; i++){
//var obj = form1.item("key" + i);
//var obj = document.getElementById("key" + i);
//var temp_key = document.getElementById("key1");
//var temp_key = obj;//.value;
if (i==1)temp_key = form1.key1;
if (i==2)temp_key = form1.key2;
if (i==3)temp_key = form1.key3;
if (i==4)temp_key = form1.key4;
result = true;
//temp_key = temp_key.toUpperCase();for (j = 0; j < temp_key.length; j++){
var temp = temp_key.substring(j, j+1);
if ((temp >= "0" && temp <= "9") (temp >= "A" && temp <= "F")){
continue;
}else{
result = false;
break;
}
}if (!result){
alert("Key" + i + " is wrong, the legal characters are 0~9, A~F, or a~f.");
break;
}
}
}
return result;
}function send_request(){
var form1 = document.getElementById("form1");
var k1 = form1.key1;
var k2 = form1.key2;
var k3 = form1.key3;
var k4 = form1.key4;
if ((form1.wep_key_type.value == "0")&&(form1.auth_type[0].checked form1.auth_type[1].checked)){
if (!(check_Hex(k1.value) && check_Hex(k2.value) && check_Hex(k3.value) && check_Hex(k4.value))){
alert("Key HEX characters is invalid.(HEX is 0~9, A~F, or a~f)");
return;
}
}if (check_key() && isHex() && check_ssid() && check_sharekey() && check_wpa()){
form1.apply.value = "1";
form1.submit();
}
}function send_reload(){
var form1 = document.getElementById("form1");
form1.reset();
window.location.reload();
}
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 onload="show_wpa();"><table width=75% border=0 cellspacing=0 cellpadding=0 height=618 align=center>
<tr>
<td>
<div align=center><img src=home_01.jpg width=765 height=95 usemap=#Map2 border=0></div>
</td>
</tr>
<tr>
<td>
<table width=765 border=0 cellpadding=0 cellspacing=0 align=center>
<tr>
<td rowspan=8 width=20 background=down_01.gif> </td><td rowspan=2 width=133><img src=down_02.jpg width=133 height=75></td>
<td rowspan=2 width=25 background=down_03.jpg> </td>
<td width=21><img src=down_04.jpg width=21 height=49></td>
<td width=522><img src=down_05.jpg width=522 height=49 usemap=#MapMap border=0></td>
<td width=19><img src=down_06.jpg width=19 height=49></td>
<td width=25 background=down_11.gif> </td>
</tr>
<tr>
<td width=21 background=down_14.gif> </td>
<td rowspan=7 width=522 valign=top>
<form name="form1" id="form1" method="post" action="h_wireless.cgi">
<table width="100%" border="0">
<tr>
<td colspan="2"><font face="Arial" color="#8bacb1" size="2">
<b>Wireless Settings</b>
</font>
</td>
</tr>
<!--<tr>
<td width="24%" align="right">
<font color="#000000" face="Arial" size="2">
AP Name :
</font>
</td>
<td width="76%">
<input type="text" name="name" maxlength="31" value="DI-624+">
</td>
</tr>-->
<tr>
<td width="24%" align="right"><font color="#000000" face="Arial" size="2">Wireless : </font>
</td>
<td width="76%">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<b><input type="radio" value="1" name="enable" onclick="chk_channel()" checked> Enable
<input type="radio" value="0" name="enable" onclick="chk_channel()"> Disable
</b></font>
</td></tr>
<tr>
<td width="24%" align="right">
<font color="#000000" face="Arial" size="2">
SSID :
</font>
</td>
<td width="76%">
<input type="text" name="ssid" maxlength="32" value="sely2"></td>
</tr>
<tr>
<td width="24%" align="right">
<font color="#000000" face="Arial" size="2">
Channel :
</font>
</td>
<td width="76%"><font face="Verdana, Arial, Helvetica, sans-serif">
<select name="channel">
<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6"selected>6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option></select>
</font>
</td>
</tr>
<tr>
<td width="24%" align="right">
<font color="#000000" face="Arial" size="2">
Authentication :
</font></td>
<td width="76%">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<b>
<input name="auth_type" type="radio" value="0" onClick="show_wpa()" checked>
Open System
<input name="auth_type" type="radio" value="1" onClick="show_wpa()">
Shared Key
<input name="auth_type" type="radio" value="3" onClick="show_wpa()">
WPA
<input name="auth_type" type="radio" value="4" onClick="show_wpa()">WPA-PSK
</b>
</font>
</td>
</tr>
<tr id="seting_wpa_psk" style="display:none">
<td colspan="2">
<table width="100%" border="0">
<tr><td width="35%" align="right">
<font face="Arial" size="2" color="#000000">
Passphrase :
</font>
</td>
<td width="65%">
<input type="password" name="wpapsk1" size="40" maxlength="63" value="">
</td>
</tr><tr>
<td width="35%" align="right"> <font face="Arial" size="2" color="#000000">
Confirmed Passphrase : </font> </td>
<td width="65%">
<input type="password" name="wpapsk2" size="40" maxlength="63" value="">
</td>
</tr></table>
</td>
</tr>
<tr id="seting_wep">
<td colspan="2">
<table width="100%" border="0">
<tr>
<td width="24%" align="right">
<font color="#000000" face="Arial" size="2">WEP :
</font>
</td>
<td width="76%">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<b>
<input name="wep_type" type="radio" value="1" onClick="form1.submit()" checked>
Enabled
<input name="wep_type" type="radio" value="0" onClick="form1.submit()">
Disabled
</b></font>
</td>
</tr>
<tr>
<td width="24%" align="right">
<font face="Arial" size="2" color="#000000">
WEP Encryption :
</font>
</td><td width="76%">
<select id="wep_key_len" name="wep_key_len" size="1" onChange="form1.submit();">
<option value="5" selected>64Bit</option>
<option value="13">128Bit</option>
<option value="29">256Bit</option>
</select>
</td></tr>
<tr>
<td width="24%" align="right" nowrap>
<font face="Arial" size="2" color="#000000">
WEP Mode :
</font>
</td>
<td width="76%">
<select id="wep_key_type" name="wep_key_type" onChange="form1.submit()"><option value="0">HEX</option>
<option value="1" selected>ASCII</option>
</select>
</td>
</tr>
<tr>
<td width="24%" height="30" align="right" nowrap>
<font color="#000000" size="2" face="Arial">Key1 :
</font>
</td>
<td width="76%" height="30" nowrap>
<input type="radio" name="wep_def_key" value="0" checked>
<span id="wep_key1">
<input type="text" id="key1" name="key1" size="26" value="delll">
</span> </td>
</tr><tr>
<td width="24%" height="30" align="right" nowrap>
<font color="#000000" size="2" face="Arial">
Key2 :
</font>
</td>
<td width="76%" height="30" nowrap>
<input type="radio" name="wep_def_key" value="1">
<span id="wep_key2"><input type="text" id="key2" name="key2" size="26" value="">
</span>
</td>
</tr>
<tr>
<td width="24%" height="30" align="right" nowrap>
<font color="#000000" size="2" face="Arial">
Key3 :
</font></td>
<td width="76%" height="30" nowrap>
<input type="radio" name="wep_def_key" value="2">
<span id="wep_key3">
<input type="text" id="key3" name="key3" size="26" value="">
</span>
</td>
</tr>
<tr><td width="24%" height="30" align="right" nowrap>
<font color="#000000" size="2" face="Arial">
Key4 :
</font>
</td>
<td width="76%" height="30" nowrap>
<input type="radio" name="wep_def_key" value="3">
<span id="wep_key4">
<input type="text" id="key4" name="key4" size="26" value=""></span>
</td>
</tr>
</table>
</td>
</tr>
<tr id="seting_wpa" style="display:none">
<td colspan="2">
<table width="100%" border="0"><td height="10">
<div align="left"><font face="Arial" size="2"><b><font color="#8bacb1">802.1X
</font></b></font></div>
</td>
<!--tr>
<td width="25%"><b><font face="Arial"> </font></b></td>
<td colspan="2" height="2">
<div align="right"></div>
<font face="Arial, Helvetica, sans-serif" size="2">Lifetime
<select name="keyLife">
<option value="86400"><b>1 Day</b></option>
<option value="28800"><b>8 Hours</b></option>
<option value="3600"><b>1 Hour</b></option>
<option value="1800" selected><b>30 Minutes</b></option>
<option value="900"><b>15 Minutes</b></option>
<option value="300"><b>5 Minutes</b></option>
</select>
</font></td>
</tr-->
<tr>
<td rowspan="3" width="25%">
<div align="right"><font face="Arial"> <font size="2">RADIUS Server 1</font></font><b><font face="Arial"><br>
<br>
<br>
<br>
</font></b><b><font face="Arial"> </font></b></div>
</td>
<td height="2" width="21%"><font face="Arial, Helvetica, sans-serif" size="2">IP</font></td>
<td height="2" width="54%"><font face="Arial, Helvetica, sans-serif" size="2"><b><input maxlength=15 name=RADIUSIP1 size=15 value="0.0.0.0">
</b></font></td>
</tr>
<tr>
<td width="21%" height="2">
<div align="left"><font face="Arial, Helvetica, sans-serif" size="2">Port</font></div>
</td>
<td width="54%" height="2"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="RADIUSPort1" size="5" maxlength="5" value="1812">
</font></td>
</tr>
<tr>
<td width="21%" height="2">
<div align="left"><font face="Arial, Helvetica, sans-serif" size="2"> Shared
Secret</font></div>
</td>
<td width="54%" height="2"><font face="Arial, Helvetica, sans-serif" size="2"><b><input type="password" name="pass1" size="32" maxlength="31" value="">
</b></font></td>
</tr>
<tr>
<td rowspan="3" width="25%">
<p align="right"><font face="Arial"><font size="2">RADIUS Server 2<br>
</font></font><font face="Arial"><font size="2">(Optional)</font></font><b><font face="Arial"><font size="2"><br>
<br><br>
</font></font></b></p>
<b><font face="Arial"> </font></b><b><font face="Arial"> </font></b></td>
<td width="21%" height="2">
<div align="left"><font face="Arial, Helvetica, sans-serif" size="2"> IP
</font></div>
</td>
<td width="54%" height="2"><font face="Arial, Helvetica, sans-serif" size="2"><b><input maxlength=15 name=RADIUSIP2 size=15 value="0.0.0.0">
</b></font></td>
</tr>
<tr>
<td width="21%" height="2">
<div align="left"><font face="Arial, Helvetica, sans-serif" size="2">Port</font></div>
</td>
<td width="54%" height="2"><font face="Arial, Helvetica, sans-serif" size="2"><input type="text" name="RADIUSPort2" size="5" maxlength="5" value="1812">
</font></td>
</tr>
<tr>
<td width="21%" height="2">
<div align="left"><font face="Arial, Helvetica, sans-serif" size="2">Shared
Secret</font></div>
</td>
<td width="54%" height="2"><font face="Arial, Helvetica, sans-serif" size="2"><b><input type="password" name="pass2" size="32" maxlength="31" value="">
</b></font></td>
</tr>
</table>
</td>
</tr>
</table><br>
<table width="100%" border="0"><tr>
<td width="20%">
<input type="hidden" name="apply" value="">
</td>
<td width="80%">
<div align="right">
<a href="javascript:send_request()"><img src="apply_p.jpg" width="51" height="52" border="0"></a>
<a href="javascript:send_reload()"><img src="cancel_p.jpg" width="51" height="52" border="0"></a>
<a href="help_home.html#02_1" target="_blank"><img src="help_p.jpg" width="36" height="52" border="0"></a></div></td>
</tr>
</table>
</form>
</td>
<td width="19"> <img src="down_10.jpg" width=19 height=26></td>
<td width="25" background="down_11.gif"> </td>
</tr>
<tr>
<td width="133" height="42" bgcolor="#CCCCCC"><a href="h_wizard.html"><img src="down_12.jpg" width="133" height="57" border="0"></a></td><td width="25" background="down_03.jpg" height="42"> </td>
<td width="21" background="down_14.gif" height="42"> </td>
<td width="19" background="down_40.gif" height="42"> </td>
<td width="25" background="down_11.gif" height="42"> </td>
</tr>
<tr>
<td width="133" bgcolor="#CCCCCC"><a href="h_wireless.html"><img src="down_over_32.jpg" width="133" height="60" border="0"></a></td>
<td width="25" background="down_03.jpg"> </td>
<td width="21" background="down_14.gif"> </td>
<td width="19" background="down_40.gif"> </td>
<td width="25" background="down_11.gif"> </td>
</tr>
<tr><td width="133" bgcolor="#CCCCCC"><a href="h_wan.html"><img src="down_17.jpg" width="133" height="56" border="0"></a>
</td>
<td width="25" background="down_03.jpg"> </td>
<td width="21" background="down_14.gif"> </td>
<td width="19" background="down_40.gif"> </td>
<td width="25" background="down_11.gif"> </td>
</tr><tr>
<td width="133" bgcolor="#CCCCCC"><a href="h_lan.html"><img src="down_22.jpg" width="133" height="56" border="0"></a>
</td>
<td width="25" background="down_03.jpg"> </td>
<td width="21" background="down_14.gif"> </td>
<td width="19" background="down_40.gif"> </td>
<td width="25" background="down_11.gif"> </td></tr>
<tr>
<td width="133" bgcolor="#CCCCCC"><a href="h_dhcp.html"><img src="down_27.jpg" width="133" height="56" border="0"></a>
</td>
<td width="25" background="down_03.jpg"> </td>
<td width="21" background="down_14.gif"> </td>
<td width="19" background="down_40.gif"> </td><td width="25" background="down_11.gif"> </td>
</tr>
<tr>
<td width="133" background="down_37.gif" height="140"> </td>
<td width="25" background="down_03.jpg">
</td>
<td width="21" background="down_14.gif"> </td>
<td width="19" background="down_40.gif"> </td><td width="25" background="down_11.gif"> </td>
</tr>
<tr>
<td colspan=6 rowspan=2> <img src="down_43.jpg" width=740 height=44></td>
<td width="25"> <img src="down_43.gif" width="25" height="17"></td>
</tr>
<tr><td width="25"> <img src="down_44.gif" width=25 height=27></td>
</tr>
</table>
<map name="MapMap">
<area shape="rect" coords=" 17,17, 82,45" href="h_wizard.html" target="_self">
<area shape="rect" coords="111,17,207,45" href="adv_virtual.html" target="_self">
<area shape="rect" coords="235,17,292,45" href="tools_admin.html" target="_self">
<area shape="rect" coords="346,17,405,45" href="st_devic.html" target="_self"><area shape="rect" coords="455,17,501,45" href="help_men.html" target="_self">
</map>
</td>
</tr>
</table><!-- End ImageReady Slices -->
<script>
modify_length();
// show_wpa();
chk_channel();
</script>
<input type="hidden" name="cfgDef" value="">
</BODY></HTML>
Das mit Java/script weiss ich, war etwas salopp von mir, aber das ist auch alles was ich weiss. Ich habe dieses Problem vor allem darum gepostet, weil ich davon ausgehe, dass hier in diesem Forum ein paar ganz gescheite Leute sitzen, welche aus dem wieder etwas neues lernen.... Aber vielleicht ist das ja auch nicht so!
-
Zitat von Lonerider
Bei der WLAN Seite passiert nach Eingabe neuer Werte (Verschlüsselung, Schlüsselart und Schlüssel) und Betätigen des "Apply" Buttons nichts, die Werte werden nicht übernommen
Mach das doch mal bitte alles mit dem Firefox und geh dann unter Tools -> JavaScript Console (Werkzeuge -> JavaScript Konsole) und schau ob da was drinsteht (Error, ...). Wenn ja kopiers doch mal unter schreib es hier rein.
Der Quellcode den du geschrieben hast sollte eigentlich so funktionieren. Hab jetzt nicht Zeile für Zeile durchgelesen, aber grundsätzlich sollte es funktionieren.
-
Sorry, war ausser Haus: Keine Fehlermeldung, geht, auch das Problem ist verschwunden.... Keine Ahnung, was die Ursache war, vielleicht irgendwas im Webseiten Cache? Aber ich hatte das Problem reproduzierbar, sogar nach dem Firmwareupdate des Routers!