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
{{ message }}
This repository was archived by the owner on May 22, 2025. It is now read-only.
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:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: