I have the following scenario, a user on domain1.com opens a new window on domain2.com. Domain2 contains a pretty complex web app where the user can browse and select documents. When the user is done searching for the right document he want's to send the select document back do domain1 and close the window. Is this possible in any way? I guess JSONP is not good enough because the response is not immediate?
1 Answer
Use message API to communicate between the windows
There is a library for cross-browser implementation.
3 Comments
Alex Turpin
Indeed. Forget JSON or JSONP for something like that. You need to be able to send and receive messages. This is the way to go.
marcus
I need to at least have support for IE 8 and all modern browsers. Is this chart up to date? cl.ly/Ftka
Alex Turpin
@Marcus don't forget that you can mark answers as "accepted" by clicking on the checkmark next to them if they have helped solve your problem.