You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import'seamless/build/seamless.parent'$(document).ready(()=>{letchild=$("iframe#content").seamless();child.receive(function(data,event){// Print out the data that was received.console.log(data);});});
child.js
import'seamless/build/seamless.child'letparent=window.seamless.connect();// Send a messageparent.send({myparam: 'This is anything you want it to be...'});
The problem, as far as I can see, is that on the parent.receive the check if (data.__id && (data.__id === _self.id)) fails, because the data.__id is 0. Looks like the child doesn't get the parents ID on connect.
Any idea what I did wrong?
The text was updated successfully, but these errors were encountered:
Hey, I'm not able to receive message on my parent
parent.html
parent.js
child.js
The problem, as far as I can see, is that on the parent.receive the check
if (data.__id && (data.__id === _self.id))
fails, because thedata.__id
is0
. Looks like the child doesn't get the parents ID on connect.Any idea what I did wrong?
The text was updated successfully, but these errors were encountered: