refresh the primary window then close the secondary, like this:
<script>
//refresh primary window
window.opener.location.refresh();
//close secondary window
window.self.close();
</script>
rgds,
dave a.
-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:51 PM
To: CF-Talk
Subject: Re: Refresh
Hi,
I'm having trouble figuring this one out. I'm using <cfdirectory to list
file(s) on our server. Each file has an associated <a href" anchor. When
a
link is clicked on and depending on the file extension different
templates
are opened up. For example, one link will open a dialog that allows a
user
to delete the file. When the user clicks on the "Delete" button the code
is
executed and the window is closed.
What I would like to do, but can't figure it out, is once the secondary
window (which executes the delete function) is closed, how can I
automatically do a refresh of the previous page that lists all the
file(s)?
I constantly have to refresh manually.
Any ideas?
+-----------------------------------------------------------------------
------------+
Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+-----------------------------------------------------------------------
-------------+
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists