2013-06-18 27 views
0

現在我使用window.open()當用戶單擊和popwindow顯示登錄表單。 爲此,我使用「:關閉後sigin和重新加載父母登錄數據

<script> 
function popupwindow(url, title, w, h) { 
    var w = 600; 
    var h = 600; 
    var left = Number((screen.width/2)-(w/2)); 
    var tops = Number((screen.height/2)-(h/2)); 

window.open("child.php", '', width='+w+', height='+h+', top='+tops+', left='+left); 


} 
</script> 

一個child.php頁面顯示在彈出的,但問題是,當我登錄和頁面重定向到父頁面並重新加載,它仍然沒有顯示出用戶登錄。 我用這些子頁面上

<script> 

    function refreshAndClose() { 
     window.opener.location.reload(true); 
     window.close(); 
     } 


</script> 

<body onbeforeunload="refreshAndClose();"> 

是否有可能與此重載父頁面的登錄細節。

+0

請檢查此:http://stackoverflow.com/questions/18321323/submit-form-reload-parent-and-close-child/36855748#36855748可能會幫助某人 – NoNaMe

回答

1

您必須在子頁面的會話變量中設置登錄詳細信息。你可以在父頁面中檢查。

相關問題