John,
Your code will get elements in the GWT page, darkflame is trying to get
elements in the parent page- i.e. the parent page has an iframe in it
containing the GWT page, and darkflame wants stuff from the parent page...

...if I understand correctly.

Ian

http://examples.roughian.com


2008/10/29 John <[EMAIL PROTECTED]>

>
> On 10/23/08, darkflame <[EMAIL PROTECTED]> wrote:
> >
> >  If my GWT app is in a container iframe, is it possible to get
> >  propertys of elements from outside that frame?
> >
> >  I tried a simple;
> >
> >   DOM.getElementById("testid").getInnerText())
> >
> >  But the app couldnt find it.
> >
> >  Is there any way for the GWT app to look "outside" its container? Or
> >  to even tell if it has one?
>
> I use EXACTLY the code you use, and it works for me.
>
> Specifically, I put a div directly above the div which contains the
> gwt project, thus:
>
> <div id="testid" style= "visibility: hidden;" >stuff goes here</div>
>
> I use this so that I can plunk my gwt app on different sites without
> any modification whatsoever, and pass in the variables it needs for
> the particular site.
>
> John
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to