Ah, I get it now. Have a timer. Start the timer when either box onBlurs. A few ms will do (25?) - you'll have to test, but even quite large delays (500ms) might be acceptable.
Cancel the timer if either box gets focus The timer validates the boxes when it runs. It doesn't really matter whether the text has changed or not since the validation is not time consuming. OR Have one box and validate for acceptable strings - 1' 2" or 1ft 2in etc Ian http://examples.roughian.com 2009/5/27 retro <[email protected]> > > Hi Ian, > Sorry for being vague. The use case is having a item height > widget with separate boxes for height in feet and one for inches. I > need to be able to fire validation on this box as a whole when one of > the box changes but only if the focus is not in the other boxes, so > this logically needs to behave as one box for focus lost events. This > could be true for another use case as well where widget has 3 > textboxes but they need to fire focus lost as one when some boxes > value changes, but not if user is still focused on the other two > boxes. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
