|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
close 1 pop-up window and reload main window...
at the same time!
Hi, I'm writing a CMS for a site I'm building, and I have the option to delete a particular image. At the moment you click on the delete image button and it opens a pop up which asks you to confirm that you wish to delete the image. What I'd like is if someone clicks on the confirm delete button, the php page is called that deletes the image and informs the user that it has been deleted from the database. Then, when the user clicks on the close button, the pop-up is closed and the main window is automatically reloaded (or refreshed) to reflect the changes. I've tried using _parent.reload but that didn't work, anyone got any ideas ? Thanks in advance, Jon |
|
#2
|
|||
|
|||
|
After reading through the O-Reily JS reference in dreamweaver, I've found opener, but I can't get it to work.
PHP Code:
I then call this the usual way using a PHP Code:
PHP Code:
any ideas ? Jon |
|
#3
|
|||
|
|||
|
oops, my mistake. it was working all along,
Jon ![]() |
|
#4
|
|||
|
|||
|
Another option is to just have a javascript alert "Are you sure you want to delete this image?" on clicking of the deletion button.
You still have a mechanism to confirm a deletion before the deletion occurs and you don't have to worry about coding the opening and closing of a separate window. If you decide to go this route, let me know and I can send you the code. Last edited by aspnewbie : June 26th, 2003 at 05:33 PM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > close 1 pop-up window and reload main window... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|