Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Refresh window from popup window


Message #1 by "Tan Chye Ting" <chyeting18@h...> on Thu, 31 Jan 2002 12:15:56
does anyone know how to refresh a window from a pop up window. i'm trying 

to update my table with the data i input in the popup window so that i can 

see the changes in the table..please help...i now there is something i can 

do to close the window using javascript like 

onclick="javascript:window.close();"..i just wonder whether there is a way 

i can do to refresh the main window once i click on a button..i really 

need help on this one..thanx
Message #2 by Subha Gowri <subha@i...> on Thu, 31 Jan 2002 17:49:35 +0530
Do onething. onclick of the refresh link/button, submit the form

to itself. (i.e) action page is nothing but y'r current page. 



You can do it in the folllowing way:



If it is the link - 

<a

href="javascript:document.formname.action='currentpage.asp';document.formnam

e.submit()">

Refresh</a>



If it is a button - 

<input type="button" value="refresh"

onclick="document.formname.action='currentpage.asp';document.formname.submit

()">







-----Original Message-----

From: Tan Chye Ting [mailto:chyeting18@h...]

Sent: Thursday, January 31, 2002 5:46 PM

To: ASPToday Discuss

Subject: [asptoday_discuss] Refresh window from popup window





does anyone know how to refresh a window from a pop up window. i'm trying 

to update my table with the data i input in the popup window so that i can 

see the changes in the table..please help...i now there is something i can 

do to close the window using javascript like 

onclick="javascript:window.close();"..i just wonder whether there is a way 

i can do to refresh the main window once i click on a button..i really 

need help on this one..thanx


  Return to Index