Friday, August 2, 2013

Re: Getting the Window, which opened my GWT module

Hi,
GWT is injecting an iframe into your page and window points to this one. Inside JSNI methods you must use $wnd and $doc to access you page's window/document (see http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html).

Honza

On Friday, August 2, 2013 1:43:34 PM UTC+2, Old_Mortality wrote:
Dear all,


I have a GWT module, which is to be called from someone else's web page (not GWT). Within my application, I have a button, and when the user presses the button, I want a String to be passed back to the calling page, and have this String inserted there into a textarea.

I have tried getting the target text area like this, using JSNI in my GWT program:

window.opener.document.getElementById('fred');


but window.opener is not set.


Is what I am trying to do at all possible?


Thank you for your attention.



Michel

--
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+unsubscribe@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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment