Saturday, March 31, 2012

Using Hangout API in GWT

I am in the middle of a problem to add Hangout API into my collaboration web application written in GWT.
Since Hangout API only allows to be run on only domain,
the GWT compiled javascript which hosted on my domain can not be injected into a hangout instance by the GWT's script iframe injection method due to security rule of browsers.
For illustration,  The following is a sample web app at

The gray hilight text at the half-bottom of the screen is the iframe added by GWT to inject the compiled Javascript.

I using the following XML file for Hangout API

When running it with Hangout instance, My web application could not be run, it encounters with the following problem.

4Unsafe JavaScript attempt to access frame with URL from frame with URL Domains, protocols and ports must match.

Without iframe method, Is there is method in GWT to change the way to injecting its javascript file? 
or There are any methods to solve this? It is very appreciated.

Thank you very much!

Kobkrit Viriryayudakorn 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment