Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Navigator 7 problems


Message #1 by "David Blair" <dab100_uk@y...> on Mon, 17 Feb 2003 21:11:46
	Yes, this is a bug in Mozilla.  For reference, check the mails of
last week.

> -----Message d'origine-----
> De : David Blair [mailto:dab100_uk@y...]
> Envoy=C3=A9 : lundi 17 f=C3=A9vrier 2003 22:12
> =C3=80 : javascript
> Objet : [javascript] Navigator 7 problems
>
>
> The following code below works in Explorer 6 and Navigator
> 4.7 but will
> not work correctly in Navigator 7.
> When the function is envoked in N7 it does not focus or
> select what the
> user has entered into the input field when an incorrect email
> format has
> been entered as it should. Is this a bug with N7 or is there
> a solution
> to this problem.  Any help gratefully appreciated.
>
>
> function checkMail() {
> 	mailVal =3D document.checkout.E_Mail.value;
> 	mailRE =3D /^[\w\-\.]+@([a-z0-9]+\.){1,3}[a-z]{2,6}$/i;
>
>
> 	if (!mailRE.test(mailVal)) {
> 		alert(messArray[19]);
> 		document.checkout.E_Mail.focus();
> 		document.checkout.E_Mail.select();	=09
> 	};
> }
>
>
>
> <INPUT TYPE=3D"text" NAME=3D"E_Mail" TABINDEX=3D"22" SIZE=3D"25"
> onChange=3D"checkMail();">

  Return to Index