[Javascript] required entry field

BEKIM BACAJ trojani2000 at hotmail.com
Thu Mar 27 11:49:51 CST 2003


Einstein went mad when he heard that somebody wrote SF novel about a man who 
traveled with the speed of light and saw the batle of Waterloe, for it is 
insaine he yelled.
But 'you' can init the new battle at Waterlloe again

function isValid() {	if(NeverBlank.value==''){
		NeverBlank.focus()
				}
		}

dejavoo - loops forever - if the user does not supply some chars!


Chers!

>From: "Michael Dougherty" <Michael_Dougherty at PBP.com>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: <javascript at LaTech.edu>
>Subject: [Javascript] required entry field
>Date: Wed, 26 Mar 2003 16:25:15 -0500
>
>function isValid( checkValue ) {
>	return (checkValue!='')
>	}
>
><input type='text' name='NeverBlank' value='' onBlur='return
>isValid(this.value)' />
>
>
>   The idea is to prevent the user from exiting this field while it's 
>blank.
>(OK, so this would be a user-hostile experience - it's just an example)
>
>   What i'm seeing is that when the user hits TAB, the focus moves to the
>next field - regardless of the return value from isValid()
>
>   Any thoughts?
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



More information about the Javascript mailing list