If u have a link to open up a popup window with an update or insert form. You enter the values and submit the form. Can you then, on submit, close the pop up window and also refresh the main window so your updated or inserted entries will be displayed?
What I ususally do, is as soon as I submit the form I have it close then simply display a "In Progress" page for about 3 secodns then redirect back to where my results show updated
Here's how I close the "In Progress" page.
<body onload="setTimeout('window.close()',3000)">
[tt] "The only ideas that will work for you are the ones you put to work."
[/tt]
YOu can do what you wanted to do by using TonyU's code and in the popup window add the following js code:
In the Head section
<script>
var howLong = 5500;
t = null;
function closeMe(){
t = setTimeout("self.close()",howLong);
}
</script>
In the body tag have this code:
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="closeMe();self.focus()" onUnload="opener.location='yourpageyouwanttorefreshto.asp'";>
This works quite nicely and avoids users going click crazy.
M "There are 3 kinds of people; those that can count and those that can't"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.