• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to use onBlur()

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HEllo,
can any one tell me how and when to use onBlur() function?
Regards
Raj.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
onBlur is usually used for field validation, or updating dependent fields. Imagine a form with three text fields and a total. While you are editing one of the fields, you don't want the total to change, but you don't want to have to press a button to update it either. So set the onBlur() handler of each of the input fields to a method which updates the total. Now whenever you move out of a field, th etotal will be updated.
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
The onBlur event is executed when the object loses its focus,
ie., when the cursor is moved from the current object to any other object in the form.
This is normally used for validation or object value updation.
Bye,
Prabhu.V.C
------------------
 
reply
    Bookmark Topic Watch Topic
  • New Topic