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 <[email protected]> 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 <[email protected]> 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" <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---
