$("your element id").observe("DOMCharacterDataChanged",function(evt){
   //your code here
});

Try above

Check the Event.Observe documentation on prototype api documentation
website.
This website gives you a link to DOM 2 Events list. Check the Mutation
Events section.

On Wed, Apr 22, 2009 at 7:02 AM, Yozefff <[email protected]> wrote:

>
> Is it possible to observe when the content of a DIV is changed?
>
> So for example, I update the innerHTML (ajax perhaps?) and some JS
> class is listening when the content is changed.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to