Web application people: please help!

dmurray14

Golden Member
Feb 21, 2003
1,780
0
0
Hokay,

I have a database driven web page that is returning a list of inventory from the database after a search. Next to every entry in the list is a modify button that makes a javascript popup window with a form to modify the contents. After a user clicks submit, the page posts the data to another page which performs a query to update the database, then javascript closes the popup window. What I need to do is make it so that when the popup window closes, it refreshes the original page with the list of inventory. I also want it to reload using the previous data it posted to that page (ie if I were to press refresh on the inventory list page it would ask if i wanted to use the previous data that was sent with the page and I would have to click retry). Any ideas on how to get this to work?

Thanks,
Dan
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
Originally posted by: dmurray14
Hokay,

I have a database driven web page that is returning a list of inventory from the database after a search. Next to every entry in the list is a modify button that makes a javascript popup window with a form to modify the contents. After a user clicks submit, the page posts the data to another page which performs a query to update the database, then javascript closes the popup window. What I need to do is make it so that when the popup window closes, it refreshes the original page with the list of inventory. I also want it to reload using the previous data it posted to that page (ie if I were to press refresh on the inventory list page it would ask if i wanted to use the previous data that was sent with the page and I would have to click retry). Any ideas on how to get this to work?

Thanks,
Dan

sounds like how this forum works. look in the html source?
 

torpid

Lifer
Sep 14, 2003
11,631
11
76
don't understand the last part, but you can do window.opener.{whatever the function is to reload which I've forgotten - location.refresh?} from the pop-up before you close it.