Hi,
i have created an iFrame in my project that calls an external service (for
example whatismyip.com) that returns my public IP.
the problem is i cant get iFrame content, because there is a completly
different domains.
the question is how can i get this iFrame contents ? its very urgent please
Hi,
You can't directly in GWT it honors cross site scripting you can however
drop down to Javascript. Write a JSNI method that accesses the containing
docs parent (your app) by accessing top, then in your code you can access
the iFrame and then it's document. Something like this:
public
On Friday, September 21, 2012 2:28:25 AM UTC-6, Coco Gwt wrote:
Hi,
i have created an iFrame in my project that calls an external service (for
example whatismyip.com) that returns my public IP.
the problem is i cant get iFrame content, because there is a completly
different domains.
After sending this I realized I sent it too early. The code below only
works after you get both documents under the same domain because of
cross-site scripting protection in the browser. To bring them both under
the same domain you can either setup Apache or Nginx as reverse-proxy or
write a
You cannot do this the way you want. It is simply does not allowed by the
most of browsers.
There is only possible way you can to choose is to build extension which
browser grant extended permissions set. But user must setup it explicitly.
25.09.2012 18:58 пользователь Nabil