DOM Mutation events question

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 UTC