Hello everyone!

I have been brought onboard to an Tapestry project(never heard of it before) 
and I would like to create a 'communication channel' between the tapestry and 
an iframe(displaying Angular application).

Both projects are on the same domain and the Angular app inside the iframe 
works as expected, but I would like to send data to the Angular project and 
vice versa. 

I found out that you can communicate between parent window and iframe by using 
cross-document messaging 
(https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)

My question is:
How could I possibly make an event listener inside Java? The javascript for 
doing so should look something like this 
"window.document.addEventListener("myEvent", 'JS function to handle', false);"
And also how to actually call a method inside Java from the JavaScript code.

I asked here and there and nobody was able to help me with that so far...
I will be very thankful if you can help me with that.

There is a small image that can helpfully help you understand my idea:


Thank you in advance!  
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to