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
Great tool! I was wondering if there has ever been discussion about how to receive data back from a child frame immediately after a post from the parent frame. Example:
Parent Frame, in some type of mootools/jquery class-like object:
getDataForThing: function(thingId){
var post = this.proxy.post({ // posts to a child frame
cmd: 'getDataForThing',
thingId: 1
});
console.log(post) // {data: 123}
}
Then, maybe in the child Frame logic:
proxy.addEventListener(function(event) {
switch (event.data.cmd){
case 'getDataForThing':
var data = 123;
return data;
break;
}
});
Admittedly, I know very little about the underlying tech that makes this possible, but there's always hope for something creative! Thanks!
The text was updated successfully, but these errors were encountered:
Great tool! I was wondering if there has ever been discussion about how to receive data back from a child frame immediately after a post from the parent frame. Example:
Parent Frame, in some type of mootools/jquery class-like object:
Then, maybe in the child Frame logic:
Admittedly, I know very little about the underlying tech that makes this possible, but there's always hope for something creative! Thanks!
The text was updated successfully, but these errors were encountered: