3

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 1

2

Use message API to communicate between the windows

There is a library for cross-browser implementation.

Sign up to request clarification or add additional context in comments.

3 Comments

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.
I need to at least have support for IE 8 and all modern browsers. Is this chart up to date? cl.ly/Ftka
@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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.