Is it possible for myComponent to emit events that can be received in MySkuidPage?
And can MySkuidPage emit events that can be received in myComponent?
This page suggests it should be possible, though having used the code (with some slight modifications to call my own event) in an app similar to the above, there’s an error “Uncaught SecurityError: Blocked a frame with origin “https://{mydomainhere}.lightning.force.com”; from accessing a cross-origin frame.” I think this may be the LockerService restrictions. I’ve tried rolling back the API versions of the components to v35, but I get the same error message.
Has anyone experimented with this or have thoughts on if it is possible?
Gary, have you tried to communicate using Lightning Application Events, or are you using Component-events? My understanding is that even with LockerService, Application Events are still published between Components (see FAQ question here).
Hi Zach, yes it was Application Events. Could well be something I’m doing wrong, or some kind of setting I’m not getting right - the error wasn’t the one I was expecting from LockerService, so it may well be something else.
Not had a chance to revisit it, and changed approach for now anyway. I’ll try and re-do the POC at some point. Thanks for replying though - at least I now know it should be possible, so I’ll put re-trying on my to do list.