77
Views
2
Comments
refresh after file download
Question
Hi,

Is there anyone that can tell me how to automaticly refresh a page after i uploaded a file to a user?

Best Regards,

Michiel Runhardt
2016-08-25 18-41-23
Lúcio Ferrão
Hi Michiel,

It is not possible to refresh a page when the user download finishes, only when the download starts. Still this is not trivial.
It requires you to use javascript on the destination screen to simulate a click when the new page is loaded in the browser. This final click is done on a link or button that effectivelly downloads the file you want.

Let me know if it works for you,
Lúcio Ferrão
2011-06-15 10-51-44
Célia Corte
-you can create a java script action like this:
 function downloadFileIntervinients(){  
   var el = document.querySelector(".BtDownloadFileClass");
   el.click();  
}

-in the ajax button, extended properties, add onclick  = "downloadFileIntervinients();"

-create an invisible submit button to run the code  to download file with the style "BtDownloadFileClass"
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.