W3C home > Mailing lists > Public > www-forms@w3.org > April 2002

DOM Mutation events question

From: Hao Yan <hao.yan@oracle.com>
Date: Tue, 09 Apr 2002 14:54:31 -0700
Message-ID: <3CB36317.E64B6A30@oracle.com>
To: www-forms@w3.org
Hi,

I am not quite clear about he DOM Mutation events in the specs. Are the events for notification only, or are they meant to be handled by developer code? If it's the latter, what would be the valid DOM events, are they defined in the XML Event spec? Also, what would an action that handles DOM Mutation event looks like?

To be more specific, there is a use case in which we need to do actions (submitInstance, for example) when certain instance data item changes. I know that if the instance item is bound to a UIControl, we could attach the action to the valueChanged event of the UIControl. But what if the instance item is not bound to any UIControl, and we want to handle it in the model? Moreover, as I understand, we can only attach actions to the model node. In that case, how do developers specify which instance data item to respond, can we use the XML Event spec where that is an observer and a target?

Thanks!

Hao Yan
Received on Tuesday, 9 April 2002 17:54:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:51 GMT