RainerOesterlein
Programmer
Hello
During the Implementation of my JavaScript i run into i difficult error.
On my HTML site there are two InputFields. The Site is included in a framset.
By Leaving the first Inputfield i wish to activate an Alert Message and the focus may not leave the first input field.
The Implementation works fine with IE5.5 but in Netscape 4.7.x i run in an endlessloop when the
Alert Messages will be shown.
Here my Example
<HTML><HEAD>
<TITLE></TITLE></HEAD>
<FRAMESET rows="130,*" border="0" frameborder="0" framespacing="0">
<FRAME src="Leer.htm" name="BelegVwUnten" marginheight="0" marginwidth="0">
<FRAME src="test.html" name="BelegVwEingabe" marginheight="0" marginwidth="0">
</FRAMESET><BODY><NOFRAMES><BODY>
Test.html
<HTML><HEAD>
<TITLE>TEST</TITLE>
<SCRIPT language="JavaScript">
function Check(Eingabefeld)
{
if (Eingabefeld.value == ""
return;
var wert = Eingabefeld.value;
alert("Ungültiger Wert"
;
Eingabefeld.focus();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="frm">
<INPUT TYPE="text" NAME="fld_eingabe10" maxlength=4 onBlur="Check(fld_eingabe10)">
<INPUT TYPE="text" NAME="fld_eingabe11" maxlength=4 >
</FORM></BODY></HTML>
Leer.html
<HTML>
<HEAD>
<TITLE>Neuanlage Mandant</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
Does anyone has a solution for this Problem??
During the Implementation of my JavaScript i run into i difficult error.
On my HTML site there are two InputFields. The Site is included in a framset.
By Leaving the first Inputfield i wish to activate an Alert Message and the focus may not leave the first input field.
The Implementation works fine with IE5.5 but in Netscape 4.7.x i run in an endlessloop when the
Alert Messages will be shown.
Here my Example
<HTML><HEAD>
<TITLE></TITLE></HEAD>
<FRAMESET rows="130,*" border="0" frameborder="0" framespacing="0">
<FRAME src="Leer.htm" name="BelegVwUnten" marginheight="0" marginwidth="0">
<FRAME src="test.html" name="BelegVwEingabe" marginheight="0" marginwidth="0">
</FRAMESET><BODY><NOFRAMES><BODY>
Test.html
<HTML><HEAD>
<TITLE>TEST</TITLE>
<SCRIPT language="JavaScript">
function Check(Eingabefeld)
{
if (Eingabefeld.value == ""
return;
var wert = Eingabefeld.value;
alert("Ungültiger Wert"
Eingabefeld.focus();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="frm">
<INPUT TYPE="text" NAME="fld_eingabe10" maxlength=4 onBlur="Check(fld_eingabe10)">
<INPUT TYPE="text" NAME="fld_eingabe11" maxlength=4 >
</FORM></BODY></HTML>
Leer.html
<HTML>
<HEAD>
<TITLE>Neuanlage Mandant</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
Does anyone has a solution for this Problem??