monaya
07-14-2011, 01:47 AM
I have a facebook login in a pop up window. When the user is logged in, I want it to refresh the parent window and close that pop up.
Refreshing my parent window doesnt work. Ive debugged and it works when i remove the facebook login and just pop up and empty page. It seems the trip to a different server for the facebook login in the popup breaks the connection between parent and child.
Is there any way to maintain that connection?
I'm opening a pop up with:
<a href="javascript:;" onClick="window.open('/fb/login/','fblogin','width=750,height=650')">
then I use this to refresh parent and close child window.
<script language="JavaScript">
<!--
window.parent.document.location.reload();
window.close();
//-->
</script>
Refreshing my parent window doesnt work. Ive debugged and it works when i remove the facebook login and just pop up and empty page. It seems the trip to a different server for the facebook login in the popup breaks the connection between parent and child.
Is there any way to maintain that connection?
I'm opening a pop up with:
<a href="javascript:;" onClick="window.open('/fb/login/','fblogin','width=750,height=650')">
then I use this to refresh parent and close child window.
<script language="JavaScript">
<!--
window.parent.document.location.reload();
window.close();
//-->
</script>