Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,846 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,663 people online right now. Registration is fast and FREE... Join Now!




refresh parent window and closes the the popup in one operation

 
Reply to this topicStart new topic

refresh parent window and closes the the popup in one operation

dadaso
27 Jul, 2008 - 10:20 PM
Post #1

New D.I.C Head
*

Joined: 9 Jun, 2008
Posts: 23


My Contributions
Here is a code that refresh parent window and closes the the popup in one operation

CODE
  
<script language="JavaScript">
<!--
function refreshParent() {
  window.opener.location.href = window.opener.location.href;

  if (window.opener.progressWindow)
        
{
    window.opener.progressWindow.close()
  }
  window.close();
}
//-->
</script>


parent window is index.php & pop up window is sign in window. Actually i tried to submit email id & pass in pop up window, but after submitting pop up windowit closes that pop up & USER should display as logged in parent window but the problem is after submiting pop up window user logged in but we have to refresh parent window manually ??


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 05:53PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month