Re: Detecting DOM changes



On Jul 9, 10:10 pm, nmoinvaz...@xxxxxxxxx wrote:
Are there any events or interfaces that would allow me to see the
changes that are taking place in the DOM before they actually occur.
For example, a javascript might create a dynamic element on the page
at any given time while the page is being loaded or even after it has
fired it's final document complete event. I want to know if there is
any function that would allow me to make modifications or elements
before they are added OR detect when the DOM has been changed.

I've been looking into the same thing for a while now, and after
stepping through a few options, it appears that the onpropertychange
event fires on an element when its innerHTML property changes, which
happens when new elements have been added or removed inside it.

From what I can tell, though, this will only happen *after* the
elements have been added or removed, not before (which is causing us
some trouble when it comes to freeing pointers).

I hope that helps!

cstevens

.



Relevant Pages

  • Re: Detecting DOM changes
    ... changes that are taking place in the DOM before they actually occur. ... a javascript might create a dynamic element on the page ... onpropertychange events that occur correct? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Detecting DOM changes
    ... Are there any events or interfaces that would allow me to see the ... changes that are taking place in the DOM before they actually occur. ... a javascript might create a dynamic element on the page ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How to find Class Name of an object?
    ... is an ECMAScript implementation, a prototype-based programming language. ... JavaScript as supported since NN2, and now in Mozilla/5.0, is another ... DOM objects are host objects, they are not part of either language ... Array objects are not host objects as HTMLDivElement objects are, ...
    (comp.lang.javascript)
  • Re: Crockfords JavaScript, The Good Parts (a book review).
    ... of the DOM (that which changes the UI for the user in response to ... JavaScript can get some predone and prepackaged stuff from Yahoo's ... *not* discuss CSS and/or the DOM. ... practices. ...
    (comp.lang.javascript)
  • Re: JS, DOM and tr... IE problems!
    ... I've got a problem with javascript and DOM. ... Capitalisation is often used in HTML markup, ... If you post what your browser is actually getting (e.g. using view ...
    (comp.lang.javascript)