Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: [DHTML] Form Field Limiter

  1. #21
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    CMND (apple key) + V works with Safari.

    I'm not claiming it's a big issue, but if someone were to copy and paste something into the field (such as a prewritten description of something), then it would be cut without becoming obvious to them before submitting.

    Why not just add an onChange attribute, so that it changes when typing and also checks after it is blurred and changed.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #22
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Or a setTimeout() to update the values, and cut accordingly.
    - Mike

  3. #23
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Why? It would work, but that would just be more things running in the background.
    We know that onChange will only run when it's changed. It would run each time it's changed, but not the entire time that the page is up.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #24
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I think that with onkeyup, onkeypress, and onchange, we should be adequately covered, if in danger of suffocating the user's browser in event hooks Updated.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #25
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Seems just fine to me. The only thing I'd say is that you might want to consider a reaction to CTRL+V specifically, so it's more immediate.

    Anyway, it's certainly comprehensive enough at this point.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •