Anath's idea would be ideal but I am not sure how supported that event
actually is.
Alternatively, it'd be a bit more work but still would satisfy your
event requisite of just firing off you own event when you update.
var oldHTML = ele.innerHTML;
ele.update(text);
ele.fire("x:update", { oldHTML : oldHTML });
http://prototypejs.org/api/element/fire
--
http://positionabsolute.net
On Apr 22, 10:33 am, Ananth Raghuraman <[email protected]> wrote:
> $("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
-~----------~----~----~----~------~----~------~--~---