auto correcting on the client

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jamthoyoung@hotmail.com

    auto correcting on the client

    Hi

    I have noticed a several plugings (jquery mask and the dojo date
    widget) auto correct user data if it is entered improperly. Or they
    delete the data when the user tabs out of the input.

    Is this normal behaviour for apps heavy with javascript?

    It seems dangerous. A defect was opened in one of my apps (validation
    on the server side) due to this behaviour. The user would enter bad
    data in an optional input, click submit - then no error. They would
    not even know they did anything wrong, because the input deleted
    itself before submitting.

    Just wondering how this is usually handled.

    Thanks
  • Evertjan.

    #2
    Re: auto correcting on the client

    wrote on 07 feb 2008 in comp.lang.javas cript:
    I have noticed a several plugings (jquery mask and the dojo date
    widget) auto correct user data if it is entered improperly. Or they
    delete the data when the user tabs out of the input.
    How would we know?
    You could look inside.
    Is this normal behaviour for apps heavy with javascript?
    Define "apps heavy with javascript".

    Are you perchance talking about Java?
    It seems dangerous. A defect was opened in one of my apps (validation
    on the server side) due to this behaviour.
    How does one open a "defect"?
    The user would enter bad
    data in an optional input,
    How can an <inputbe optional?
    click submit - then no error. They would
    not even know they did anything wrong, because the input deleted
    itself before submitting.
    Perhaps the value/content of the <inputdid?
    Just wondering how this is usually handled.
    Programmaticall y?


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • jamthoyoung@hotmail.com

      #3
      Re: auto correcting on the client

      To clarify what I'm asking:

      When js libraries (like some of the jquery plugins) are attached to an
      <input>, is it normal to auto-correct the user onblur?

      Comment

      • Joost Diepenmaat

        #4
        Re: auto correcting on the client

        jamthoyoung@hot mail.com writes:
        To clarify what I'm asking:
        >
        When js libraries (like some of the jquery plugins) are attached to an
        <input>, is it normal to auto-correct the user onblur?
        Depends. Some slight cleanup may be useful (for instance, removing
        unneeded whitespace), but as you point out when taken to extremes it can
        lead to unintuitive behaviour.

        If it doesn't do what you think it should do, don't do it.

        Joost.

        Comment

        Working...