Well, DOM2 does define "Mutation Events"[1], which seem to be what you're looking for, but I dunno how many browsers actually support them. You could trigger custom events inside append(), prepend(), etc., but I dunno how well that will run.
[1] http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-eventgroupings-mutationevents On 4/30/07, Scott Sauyet <[EMAIL PROTECTED]> wrote: > > > John Resig wrote: > > Excellent Brandon, this is a great start. I suspect that in order to > > get a full "behavior" plugin (one the feels natural) it'll require a > > lot of code extensions. Hmm... I wonder if there's anything that can > > be added to jQuery proper to ease the process. > > Do the browsers offer any DomChanged() hooks we could use? I would > guess not, or the bright minds here would already have taken advantage > of them. > > Brandon's approach seems the best that can be done without such hooks, > and I could certainly make an argument for this going in the core, but > it there were such hooks available, this could be pretty easy and very > clean. I just don't know much about the APIs exposed by the major > browsers. > > -- Scott > > > > > -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com