Menu

#74 AttributeChangeListener

closed
None
5
2012-10-21
2005-02-17
claes
No

It would be nice to have something like
addAttributeChangeListener for HtmlElement (and
corresponding
AttributeChangeListener/AttributeChangeEvent classes),
so that you can receive a notification of when some
attribute changes its value (when javascript sets the
value of an input element, for instance).

Discussion

  • Brad Clarke

    Brad Clarke - 2005-05-11

    Logged In: YES
    user_id=257129

    Could you provide an example of how you would use this?

     
  • claes

    claes - 2005-05-15

    Logged In: YES
    user_id=1161525

    Say you have a normal href link which, when clicked,
    executes some javascript that modifies the value of an input
    element (toggles a radio button/enters text in a textfield etc.).
    If you have a visual representation of those elements (like a
    JRadioButton or JTextField in this case), it would be nice to
    have them re-rendered when the "selected" or "value"
    attributes change.

     
  • Marc Guillemot

    Marc Guillemot - 2006-12-27

    Logged In: YES
    user_id=402164
    Originator: NO

    I'm thinking about adding such features too. More generally I want that WebTest gets "notified" on all changes in the DOM: as well attribute changes as node added/removed.

     
  • Ahmed Ashour

    Ahmed Ashour - 2007-06-24

    Logged In: YES
    user_id=950730
    Originator: NO

    Addded HtmlAttributeChangeListener and HtmlAttributeEvent in SVN. To be used with individual HtmlElement or HtmlPage (for all its sub elements).

    I am leaving this open till having listener for node add/remove.

    Hope that helps, many thanks.

     
  • Ahmed Ashour

    Ahmed Ashour - 2007-07-05

    Logged In: YES
    user_id=950730
    Originator: NO

    Node add/remove is implemented in svn.

    Many thanks.

     

Log in to post a comment.

MongoDB Logo MongoDB