jquery - Javascript/PHP: Open window to install twitter API then send back user info to main window -
i use window.open() open popup uses oauth redirect user around , install twitter application, closes itself.
before closing however, send main window username of client. tried var win = window.opener;
followed win.somefunction(username);
not working, guess before "opener" property lost in redirections oauth does.
is there way child window find parent window , send data? checked , there no window.setname('parent');
, getwindowbyname('parent');
hehehe, true.
update:
i using 3-legged authorization
the thing tried i'm talking in second paragraph comes this: is possible open popup javascript , detect when user closes it?
well turns out put time detect when window closed sent ajax request data needed.
Comments
Post a Comment