Reply to Re: How To: upon button click 1. load new page and 2. download file

Your name:

Reply:


Posted by Michael Fesser on 08/23/07 21:19

..oO(sven.seuken@gmail.com)

>When the user clicks the "download button" on my page, a new webpage
>shall load (saying something like "thank you for the download...") and
>at the same time, a file download dialogue shall open.

Since you can't send two resources at the same time to the browser, this
is usually done with a "Thank you" page, which contains a meta-refresh
to the download file. The browser gets the page, and after some seconds
he follows the meta-refresh to get the actual file. Ugly, but common.

Personally I wouldn't do it. Why should I thank someone for downloading
anything from my site? Doesn't really make sense to me. YMMV, though.

Micha

[Back to original 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

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