dosnt seem to work.
My testing HTML is just;
<Body>
<h1> test test test </h1>
<iframe src="(link to gwt page here)" width="100%" height="500px"></
iframe>
</Body>
And my code is;
public static native void testWindow()
/*-{
$wnd.alert("test");
$wnd.alert("text="+$wnd.parent.document.getElementsByTagName("H1")
[0].innerText);
}-*/;
When activating that function, the first alert "test" appears, but the
following one does not.
I put it in a try/catch loop and it gave me a
"Security error: attempted to read protected variable"
exception.
On Oct 29, 3:40 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> Hi Thomas,
> Put an H1 in the parent document and try this:
>
> alert($wnd.parent.document.getElementsByTagName("H1")[0].innerText);
>
> Ian
>
> http://examples.roughian.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---