On Wednesday, February 27, 2013 3:07:48 PM UTC+1, Milan Cvejic wrote:
>
> On the other hand, if you are loading iframe from the same domain, and 
> have full control of iframe content you can use window.postMessage api for 
> child - parent communication.
>

If it's from the same origin, you don't need postMessage. postMessage was 
specifically made for cross-origin communications.
See http://dev.w3.org/html5/postmsg/#web-messaging and 
http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.html#web-messaging
 for 
the spec, and http://html5demos.com/postmessage2 for a demo.

You will need to implement some JSNI methods in order to accomplish this in 
> GWT.


or use Elemental.

I doubt it'll solve Laurent's use case though: he was talking about loading 
a third-party site, and never mentioned that site was "friendly" to the 
"calling GWT app" (he used Google as an example)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to