Intercepting onchange()

Discussion in 'Javascript' started by Christoph Boget, Jul 30, 2008.

  1. I'm using a widget/control (a date picker), which I don't really have any
    control over, that is programmatically updating a text field. I'm curious
    if there is any way I can determine when the value of the text field is
    changed? I've tried setting the onchange for the field in the markup but
    because the value is being set programmatically, that event never triggers.

    Apart from setting up an interval, is there any other way to determine when
    a value of a field changes if it's not the user setting the value?

    thnx,
    Christoph
    Christoph Boget, Jul 30, 2008
    #1
    1. Advertising

  2. Christoph Boget wrote:
    > I'm using a widget/control (a date picker), which I don't really have any
    > control over,


    Why do you think so?

    > that is programmatically updating a text field. [...]
    > Apart from setting up an interval, is there any other way to determine when
    > a value of a field changes if it's not the user setting the value?


    I don't think so. I would use a self-setting timeout, though.


    PointedEars
    --
    Use any version of Microsoft Frontpage to create your site.
    (This won't prevent people from viewing your source, but no one
    will want to steal it.)
    -- from <http://www.vortex-webdesign.com/help/hidesource.htm>
    Thomas 'PointedEars' Lahn, Jul 31, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Timothy Parez
    Replies:
    0
    Views:
    378
    Timothy Parez
    Mar 6, 2004
  2. Al
    Replies:
    1
    Views:
    393
    RickB
    Jul 1, 2003
  3. Nick
    Replies:
    2
    Views:
    343
  4. Stu
    Replies:
    1
    Views:
    349
    William F. Robertson, Jr.
    Feb 22, 2005
  5. Guest
    Replies:
    4
    Views:
    550
    Brock Allen
    Aug 3, 2005
Loading...

Share This Page