nick wrote:
Hi All.
I have a document loaded into browser. Later, I am loading some HTML
content (using hidden frame) and replace some part of my document with
new content, using innerHTML property.
I definitively recommend you use DOM node creating-insertion-updating
methods instead of innerHTML.
The question is - how can I get notified when my document is changed ?
Regards,
Nick
You can register a DOM mutation event on a node that you know will be
modified. Right now, the DOMNodeInserted IntoDocument event is not
reported by any browser I know... but DOMNodeInserted is detected and
reported accordingly in NS 7.x, Mozilla 1.4+ and Opera 7.20 beta 7. (no
support in MSIE 6 for WIndows)
"DOMNodeInserte d
Fired when a node has been added as a child of another node. This
event is dispatched after the insertion has taken place. The target of
this event is the node being inserted."
http://www.w3.org/TR/2000/REC-DOM-Le...-MutationEvent
Interactive DOM 2 mutation events page:
http://www10.brinkster.com/doctorunc...ionEvents.html
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html