java - How do you access the parent window when you open a popup window to oauth with twitter using gwt? -
I had to work fine with Twitter in my GWT app However, when I try to use window.open () and do my work, I get a successful overturn, and Twitter has redirected the newly opened window to my callback URL, I have a problem.
The only way I can use JSNI to close the window and call $ wnd.close () I close the window after I'm using it for oauth , I want to call the method again on the original window to continue, however, since I did not know how the original window reached, I do not know how to do this.
Basically I tried a GWT dialog box which is great due to the model dialog and the background of the glass Featues, but unfortunately does not work because when you redirect to Twitter, Iframe is in, then they kill the iframe.
I use the window opener object in a Java JavaScript object, then I open my GW code when I close the window which I am using for ohth.
Has anyone done this? What I am trying to do is basically via non-GWT Javascript in Twitter Oath.
Thank you.
Window.open In JavaScript the child gives a hand in the window since GWT Do not return this handle to the Window.open , so you do not use your own JSNI which makes javascript calls and gives the window handle? After this, you can preserve the maintenance of this window in your GWT app and later you can use the TI to close the window to pass this handle to the other JSN, which can be found in the window.close ( )
Comments
Post a Comment