Note that there are some explanatory texts on larger screens.

plurals
  1. POCommunicating between websites (using Javascript or ?)
    text
    copied!<p>Here's my problem - I'd like to communicate between two websites and I'm looking for a clean solution. The current solution uses Javascript but there are nasty workarounds because of (understandable) cross-site scripting restrictions.</p> <p>At the moment, <strong>website A</strong> opens a modal window containing <strong>website B</strong> using a <a href="http://jquery.com/" rel="nofollow noreferrer">jQuery</a> plug-in called <a href="http://dev.iceburg.net/jquery/jqModal/" rel="nofollow noreferrer">jqModal</a>. <strong>Website B</strong> does some work and returns some results to <strong>website A</strong>. To return that information we have to work around cross-site scripting restrictions - <strong>website B</strong> creates an iframe that refers to a page on <strong>website A</strong> and includes *fragment identifiers" containing the information to be returned. The iframe is polled by <strong>website A</strong> to detect the returned information. It's a <a href="http://tagneto.blogspot.com/2006/06/cross-domain-frame-communication-with.html" rel="nofollow noreferrer">common technique</a> but it's hacky.</p> <p>There are variations such as <a href="http://www.julienlecomte.net/blog/2007/11/31/" rel="nofollow noreferrer">CrossSite</a> and I could perhaps use an HTTP POST from <strong>website B</strong> to <strong>website A</strong> but I'm trying to avoid page refreshes.</p> <p>Does anyone have any alternatives?</p> <p>EDIT: I'd like to avoid having to save state on <strong>website B</strong>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload