[Proto-Scripty] Re: Custom events with iframes
Hi David, It did work finally though i'm facing a different issue now. Posting a new thread on that problem. Please have a look at http://groups.google.com/group/prototype-scriptaculous/t/e69e90a8b84987f4 Thanks again for your response. -Sumit On Dec 9, 11:49 am, Sumit skbrnwl-...@yahoo.com wrote: I think i'm having issues with the loading sequence of the javascripts and these iframes. Will report more details once i'm done fixing the issue. Thanks for your response, David! -Sumit On Dec 9, 2:36 am, david david.brill...@gmail.com wrote: Hi sumit, Just a though, I didn't test it. you don't use custom event it has the form namespace:eventName. What you could do ?? is to define in frame A: document.observe(FrameB:message, function(e){ console.log(11+e); }); And send from Frame B: Event.fire(document,'FrameB:message','message to send',true); It could work, but my question is about frame and crossdomain ?? -- david On 8 déc, 20:31, Sumit skbrnwl-...@yahoo.com wrote: Hi, I've certain iframes loaded on my page (same domain) and i want to fire custom events from one of them to the other for which those iframes are already listening. Somehow the following implementation doesn't work (sadly the firebug console doesn't show anything): In the iframe A, i'm doing- document.observe(message, function(e){ console.log(11+e); }); In the iframe B (same as domain A), i'm doing- Event.fire(parent.frames[frame11],message,frame12, true); Any idea what i might be doing wrong? Thanks in advance. -Sumit -- 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-scriptacul...@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: Custom events with iframes
Hi sumit, Just a though, I didn't test it. you don't use custom event it has the form namespace:eventName. What you could do ?? is to define in frame A: document.observe(FrameB:message, function(e){ console.log(11+e); }); And send from Frame B: Event.fire(document,'FrameB:message','message to send',true); It could work, but my question is about frame and crossdomain ?? -- david On 8 déc, 20:31, Sumit skbrnwl-...@yahoo.com wrote: Hi, I've certain iframes loaded on my page (same domain) and i want to fire custom events from one of them to the other for which those iframes are already listening. Somehow the following implementation doesn't work (sadly the firebug console doesn't show anything): In the iframe A, i'm doing- document.observe(message, function(e){ console.log(11+e); }); In the iframe B (same as domain A), i'm doing- Event.fire(parent.frames[frame11],message,frame12, true); Any idea what i might be doing wrong? Thanks in advance. -Sumit -- 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-scriptacul...@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: Custom events with iframes
I think i'm having issues with the loading sequence of the javascripts and these iframes. Will report more details once i'm done fixing the issue. Thanks for your response, David! -Sumit On Dec 9, 2:36 am, david david.brill...@gmail.com wrote: Hi sumit, Just a though, I didn't test it. you don't use custom event it has the form namespace:eventName. What you could do ?? is to define in frame A: document.observe(FrameB:message, function(e){ console.log(11+e); }); And send from Frame B: Event.fire(document,'FrameB:message','message to send',true); It could work, but my question is about frame and crossdomain ?? -- david On 8 déc, 20:31, Sumit skbrnwl-...@yahoo.com wrote: Hi, I've certain iframes loaded on my page (same domain) and i want to fire custom events from one of them to the other for which those iframes are already listening. Somehow the following implementation doesn't work (sadly the firebug console doesn't show anything): In the iframe A, i'm doing- document.observe(message, function(e){ console.log(11+e); }); In the iframe B (same as domain A), i'm doing- Event.fire(parent.frames[frame11],message,frame12, true); Any idea what i might be doing wrong? Thanks in advance. -Sumit -- 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-scriptacul...@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.