Hello Mohammed,
strange, it should work.
For me even
window.parent.postMessage("msg0", "*");
does the job when executed in the iframe.
Actually, I saw security errors using postMessage due to typos so please
double-check the spelling of postMessage, for instance.
If this does not help you can try to share some code, so i can try to
understand.
Cheers,
Alberto.
Il giorno mar 8 set 2015 16:46 Mohammed Sameen <[email protected]> ha
scritto:
> Thanks Alberto,i am not able to do this using Window.PostMessage() its
> throwing this "Uncaught SecurityError: Blocked a frame with origin "
> http://wlw7-mohammeds:9090" from accessing a frame with origin "
> http://localhost:8080". Protocols, domains, and ports must match."
> Exception even though i am setting the response header to (
> Access-Control-Allow-Origin:http://localhost:8080) any other workaround?
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.