Hey guys,
I'm trying to create a simple little foray in to JSNI to do some DOM
manipulation and I'm really striking out bigtime. Basically, my
document loads an IFrame that contains and external page in it. On the
page is a JS function called "giveFocus()". I can't seem to get ahold
of the frame properly to call the function.
Has anyone got this to work sucessfully? Basically, I've got something
like this:
entryPoint
{
Frame myFrame = new Frame( *externalPage* );
myFrame.setSize( 100, 200 );
RootPanel.add( myFrame );
doFrameFunction( myFrame );
}
native void doFrameFunction( Frame frame ) /*-{
$wnd.frames( frame ).document.callThisJSFunctionInsideTheIFrame();
}-*/;
The pseudocode is crappy but generally that's what I'm trying to pull
off.
Is this possible? Where am I going wrong?
Thanks!
Evan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---