File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Joined: Jun 13, 2005
Nov 23, 2006 22:43:00
I have few text boxes, all have same name.
On lost focus I show alert("Please enter value").
and set focus back to same text field.
But what happens is alert box comes continuosly.
I think this is because other control gets focus and loses focus since we say first control.focus but now since second control lost focus with empty value so it also raises alert.
It happens in cycle.
How to solve this problem.
Joined: Nov 08, 2001
Nov 24, 2006 05:24:00
That is why I would never use onblur to force validation. You can get users stuck in loops.
I agree. Here's the link:
subject: onBlur problem?
for attribute in Label element
What type of listener can i use, instead of FocusListener
JTable Column Validation
alert msg on onchange event
focusing on an input element with jquery
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015