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

Join 118,691 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,159 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! 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
post 27 Jul, 2008 - 11: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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/12/08 08:00AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month