Please open a ticket with your issue. Thank you.
Tobie On Aug 27, 11:37 pm, Ngan <nganp...@gmail.com> wrote: > Hi I came an issue with Firefox (works for Safari and IE8 correctly) > RE: Event.observe(...) vs ___.observe(...). You'll need both of the > files below. > > Notice that firefox only receives the fire when it is using "observe" > directly on the iframe's document element. Whereas Event.observe does > not work. Safari and IE8 picks up both observes and prints out both > messages to console. > > FILE: test.html ------------------------- > <html> > <head> > <script src="js/prototype.js" type="text/javascript"></script> > <script> > Event.observe(window, 'load', function() { > $('ifr').writeAttribute('src', 'test2.html');}); > > function register(ifrDocument) { > ifrDocument.observe('custom:event', function() { > console.info('received fire 1'); > }); > Event.observe(ifrDocument, 'custom:event', function() { > console.info('recieved fire 2'); > });} > > </script> > </head> > <body> > <iframe id="ifr"></iframe> > </body> > </html> > > FILE: test2.html --------------------- > <html> > <head> > <script src="js/prototype.js" type="text/javascript"></script> > <script> > Event.observe(window, 'load', function() { > parent.register(document); > console.info('firing event from iframe...'); > document.fire('custom:event');}); > > </script> > </head> > <body> > </body> > </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to prototype-core-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---