You are here: Re: Refresh main window after download « PHP Programming Language « IT news, forums, messages
Re: Refresh main window after download

Posted by Markus Ernst on 07/03/06 11:04

Harold Crump schrieb:
> Greetings,
>
> I have a web application where the main window shows a list of records
> available for download.
> The user clicks on the download button, which posts the form to another
> .php page, which generates the file for download and pops up the
> download dialog.
>
> So far, so good.
>
> My question is - how do I refresh the main window once the download
> dialog box has popped up?

You could do this at the client side by outputting something like
<script type="text/Javascript">
location.replace('/mainfile.php');
</script>
<a href="/mainfile.php">Go back to List</a>

So Users without Javascript will have to click on the link, but
everybody will safely get back to the list.

HTH
Markus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация