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