PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB 17 - download a file.
WB 17 - download a file.
Iniciado por guest, 23,nov. 2015 18:11 - 2 respuestas
Publicado el 23,noviembre 2015 - 18:11
Hi all,

In one of my WebDev 17 applications I have a table filled with records with documentinformation. When a user clicks on a document, a download starts to the users computer.

I use this piece of code to download the file:

FileDisplay(gsUploadMap + "\"+ BASEDOC.URL,"application/unknown",BASEDOC.URL)

This piece of code works fine with Google Chrome, but when I use Firefox, the document is downloaded and after that, the webpage freezes. I tried this with AJAX on and off.

Does anyone has a clue to solve this ?

Best regards,

Aad
Publicado el 23,noviembre 2015 - 18:35
Hello Aad,

did you define the target of your button as being a new tab/page?

Best regards
Publicado el 23,noviembre 2015 - 19:10
Thanks Fabrice, that did the trick.

Best regards,

Aad