close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need to reload page after file download

Thread began 4/09/2010 5:16 pm by lejohnson01403530 | Last modified 4/13/2010 9:03 pm by Jimmy Wu | 4808 views | 3 replies |

lejohnson01403530

Need to reload page after file download

I have a download center that is working great. However, I am limiting users to 3 downloads per purchase and I am displaying the remaining download count on the page. Afer the user clicks the download button, the UE download function is triggered and works fine. But I want to be able to reload the page at that point so that the new download count is reflected. How can I do this?

I have tried a number of things without success including action="webpage.php" or PHP_SELF. I have also tried a suggestion that I found in this forum of adding an onclick java script to delay the reload of the page. As soon as I add an onclick behavior, the download file does not get triggered anymore.

Sign in to reply to this post

Jimmy Wu

One thing you could try is to forward to a dummy page which then forwards back to the download page.

Sign in to reply to this post

lejohnson01403530

Sorry for being a newbie, but can you explain how you would forward to a dummy page? Maybe provide some quick sample code?

Sign in to reply to this post

Jimmy Wu

If you put the action of the form as the dummy page, you would be able to forward to that page. In the dummy page, you can put this at the top of the page:
<?php header("Location: <your page>"); ?>

Make sure to replace <your page> with your page.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...