Events do not seem to propagate through frames. Here's how I work on it:
In the parent frame, define this global function:
var fireGlobalEvent = function (e, param) { YUI().use('event-custom', function (Y) { var publisher = new Y.EventTarget(); publisher.publish(e, { broadcast: 2,
Then just call this in the child to trigger the event in the parent.
window.parent.fireGlobalEvent('my_custom_global_event', 'an_extra_param');
Then the event is captured by the parent modules with:
Y.Global.on('my_custom_global_event', function (e, param) {
source share