| Page 1 of 1 | [ 2 posts ] |
|
HI,
I have one widget in one sandbox that needs to notify another widget in a different sandbox to refresh its data. I tried to fire a custom event from the first sandbox: Code: Y.fire('entity_created', 'list_id', data ); And listen in the second sandbox: Code: Y.on('entity_created', function(list, data) { console.log('envent logged'); }); But nothing is logged. When I define the event listener in the first sandbox, it works fine. Both sandboxes use 'event-custom'. Was I mistaken to think that events spread across sandboxes. If that's not the case, how can I set up communications between sandboxes? (I'm nearly sure I read something about that, or saw it mentioned in a video, but I don't find it back....) Thanks Raphaël |
|
You can use the global event target, I think this thread mentions it.
viewtopic.php?p=8125 Basically set up an event in one sandbox and tell it to broadcast, then in another sandbox go Y.Global.on('the event you setup') to catch it. |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group