• 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

Javascript input text event

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my application I am using AJAX for form auto completion. As soon as the user enters the Id, the corresponding information from the database is displayed in the other fields automatically.

I am using <input type="text" onchange="somemethod()">

The problem with onchange event is, if the user chooses the Id from the previousely used values catched by the browser, it is not working.

Is there a better event than onchange for doing this. I tried using onblur event.But its not supported by some of the browsers. Or, is there a way to stop the browser from remembering the previousely entered values?

Thanks,
Srilatha
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
onblur is supported by every major browser I can think of.

Eric
 
Srilatha Vangala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to Ajax.When I tried onblur previously, it didn't work properly with IE. Its working now. Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic