Hi Arieh! Thank you very much for your help!
On 4 February 2011 22:36, אריה גלזר <[email protected]> wrote: > There you go - > http://jsfiddle.net/ariehg/mUC57/ > > clicking on my-div will trigger the event both on my-div and wrapper due to > bubbling. Firing a costume event won't have this effect. Note that if you > don't want to hack an event object like I did in the example, you can use > http://mootools.net/forge/p/event_mock > > On Fri, Feb 4, 2011 at 2:18 PM, Maxim Lacrima <[email protected]> > wrote: >> >> Hi Arieh! >> >> Thanks for your answer. I might be missing something obvious, but >> could you provide a simple example? >> What I need in particular is the following: I have a div element; when >> the content of the div changes I want the event to be fired. >> What are basic steps to implement such event handling? >> >> Thanks in advance >> >> On 4 February 2011 10:17, אריה גלזר <[email protected]> wrote: >> > if you don't mind about bubbling, you can simply attach and fire the >> > event. >> > If you want it to bubble however, there isn't a simple way of doing this >> > cross-browser IMO. >> > for non-ie browser, you can use this: >> > https://developer.mozilla.org/en/DOM/event.initEvent >> > >> > >> > >> > On Fri, Feb 4, 2011 at 9:24 AM, Maxim Lacrima <[email protected]> >> > wrote: >> >> >> >> Hi! >> >> >> >> I want to perform some action when some property of an element is >> >> changed. For example, if class name of some div element is changed I >> >> want to be able to catch this "on property change event" and perform >> >> some action. Is there any approach to do this? >> >> >> >> Thanks in advance. >> >> >> >> -- >> >> with regards, >> >> Maxim >> > >> > >> > >> > -- >> > Arieh Glazer >> > אריה גלזר >> > 052-5348-561 >> > http://www.arieh.co.il >> > http://www.link-wd.co.il >> > >> >> >> >> -- >> with regards, >> Maxim > > > > -- > Arieh Glazer > אריה גלזר > 052-5348-561 > http://www.arieh.co.il > http://www.link-wd.co.il > -- with regards, Maxim
