I’ve looked at several methods, and I’m not sure which is the best approach.
I have 2 domains – exactly the same, except for differing protocols.
Parent page is on http, child iframe is on https.
I need to send 3 variables from the child to the parent.
What accomplishes this in the easiest manner? postMessage with IE7 fallback?
Such as: http://benalman.com/projects/jquery-postmessage-plugin/
Or jsonp?
I would definetley go for
postMessage.Have a look at this wrapper. The fifth example on that page will show you how to pass data from the iframe to the parent window.