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

Posted by Harold Crump on 07/04/06 14:59

Hi Markus --

Thanks for the suggestion.

The page that actually launches the download window sets
content-disposition.
Therefore, I don't think I can emit JavaScript through that page -
correct me if I am wrong.

The form in the main window simply posts to that download page, and
therefore doesn't know anything of what's going on.

The form tag on the main screen is as follows -
<form name="frmDownloadOrders" id="frmDownloadOrders" method="post"
action="startDownload.php">

The startDownload.php script generates the download stream and sets
content-disposition.

My issue is refreshing the main screen where the form is after the form
has been posted to startDownload.php

Thanks for any ideas/suggestions.

-Harold.

Markus Ernst wrote:
> 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

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