SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what event use to validate autocomplete or auto fill forms

    Hello, i been looking for many site, but no luck, hope some one have solve this issue,

    I have a form that validate using javascrit the input box, is working ok, when some body make a change to the inputbox we capture the onChage event and do some ajax to validate the database and show some message if exist.

    The problem is when the user autofill the form, with some software or browser, the onChange event is not tigger, i try other events but no luck.

    What can i do ?

    thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    There is no event that fires on that sort of change.
    You will need to perform validation from the onsubmit event of the form itself to prevent any unwanted values from getting through.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Oct 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi pmw57, thanks for the answer, i will do that (i was all ready think of that but i specting somethin easy) because on my view a onChange event must occur but i try many thing and no look,

    thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •