Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text blocker-autotab works in one form not in a 2nd 1

Status
Not open for further replies.

DocRocks

Technical User
Jun 30, 2006
1
US
thread216-1188687

My frustrated brain needs help to understand why these text blocking functions work in one form and not in another in both IE6 and FF2 on my XPSP2 PC.

I modified the functions in the above thread to block numbers and letters in my test form at , added an autotab function and it all works great. Copy/paste the same text box codes into the First Name area of my full form at and they also work.

Here's the problem - the onkeypress event to allow letters only doesn't work when used for the First Name text box on the full form.

Thanks for your help - I really need it on this one.
 
I'll show you a problem I see


Code:
<input [!]name="Borrower_First_Name"[/!] type="text"  style="background-color:#FFFFCC"  onkeypress="keytest(event,AZaz);" onkeyup="followup([!]this.id[/!]);return autotab(this, 5, event);" onfocus="lastval=this.value;" maxlength="5" />

You need to assign an ID to this field.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top