how to register a handler for processing the message form its elements in right way?
On 1 фев, 13:16, "T.J. Crowder" <[email protected]> wrote: > Hi, > > Events bubble *up* through the DOM, not down. Form elements are > descendants of forms. If you fired the event on the form element, the > form could see it; but not the other way around. > > HTH, > -- > T.J. Crowder > Independent Software Consultant > tj / crowder software / comwww.crowdersoftware.com > > On Feb 1, 11:02 am, buda <[email protected]> wrote: > > > > > On the form form1 is an element MyElement > > I attach to MyElement event handler > > > MyElement.observe ( 'form: updated', function (e ){...}); > > > then in the code generating the event > > > form1.fire ( 'form: updated'); > > > but the handler is not called for MyElement > > > Why?- Скрыть цитируемый текст - > > - Показать цитируемый текст - -- 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.
