Firefox has events for node insertion etc: 
https://developer.mozilla.org/En/DOM_Events
but they are not available to IE, and can incur in significant
overhead for the page.

If you're in control of the whole app's code, couldn't you just add a
callback for when a widget is added?

On Apr 5, 2:08 am, will <willthem...@gmail.com> wrote:
> Hi,
>
> I'm trying to bind a function to the body element of a document that
> will fire any time any part of the page's DOM changes.
>
> $("body").change() doesn't seem to do it. It does for some changes but
> not all. In particular, not when HTML or element attributes are added/
> removed. Sorta key! It does trigger when a jEditable element is
> "saved".
>
> What I'm trying to accomplish, in case some one can suggest another
> way: I'm making something sort of like iGoogle. When some one adds or
> edits a widget, I want to let them know the page contains changes and
> they orta think about saving it. Autosave isn't really an option as
> this app will save multiple pages.
>
> I'd appreciate any insight.
>
> Will

Reply via email to