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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -