> 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.

You'd have to use JavaScript to do something like this, but there's a
couple of warnings I'll give you

1) The NT File System doesn't run at the speed you expect it to - it
might "queue" the delete and deal with it in a few seconds, but your
CFdirectory will have already read the file as still existing

2) You shouldn't refresh if the page has come from a form - or you'll
re-submit the form!

You should check out the "opener" object in JavaScript, so you might do;
opener.refresh();

Before your close

HTH

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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

Reply via email to