[Proto-Scripty] Re: Observing elements not working...
Hi lun.ashis, One thing, because code seems to be good, is that webkit can't attach an event on an hidden element. But I don't know if it's still true for version 4. If it could help. -- david On 16 juil, 10:40, lun.ashis ashis@gmail.com wrote: Hi guys I am facing problem with Safari 3.0.4 that element observed is useless, it does nothing. But it works for other browsers and also with the other upper version of safari. my code is $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Observing elements not working...
are you adding the observer after the dom is loaded? document.observe('dom:loaded', function () [ $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); }); On Thu, Jul 16, 2009 at 7:30 AM, david david.brill...@gmail.com wrote: Hi lun.ashis, One thing, because code seems to be good, is that webkit can't attach an event on an hidden element. But I don't know if it's still true for version 4. If it could help. -- david On 16 juil, 10:40, lun.ashis ashis@gmail.com wrote: Hi guys I am facing problem with Safari 3.0.4 that element observed is useless, it does nothing. But it works for other browsers and also with the other upper version of safari. my code is $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Observing elements not working...
Thx guys... Actually problem was with the duplicate parent element. I fix the problem and it's working now. Since RedBox clones the element. Anyway thx for your help, i came to know new things from u guys. Cheers On Jul 17, 3:46 am, Rick Waldron waldron.r...@gmail.com wrote: are you adding the observer after the dom is loaded? document.observe('dom:loaded', function () [ $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); }); On Thu, Jul 16, 2009 at 7:30 AM, david david.brill...@gmail.com wrote: Hi lun.ashis, One thing, because code seems to be good, is that webkit can't attach an event on an hidden element. But I don't know if it's still true for version 4. If it could help. -- david On 16 juil, 10:40, lun.ashis ashis@gmail.com wrote: Hi guys I am facing problem with Safari 3.0.4 that element observed is useless, it does nothing. But it works for other browsers and also with the other upper version of safari. my code is $('btn-link-cancel').observe('click',function(){ RedBox.close(); }); --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---