Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread How to download a file
Mon, Aug 11 2014 3:27 PMPermanent Link

Sergei Safar

Sorry for my dumb question, but I need a piece of EWB code to download a file and I dont know how to do it

Suppose you have a file at www.mysite.com/products named file1.txt and as soon as the user clicks a button, the download starts.

Thank you in advance.

Sergei Safar
Mon, Aug 11 2014 3:55 PMPermanent Link

Walter Matte

Tactical Business Corporation


Add   Uses webDOM;


window.location.href := 'http://www.website.com/FAQ.pdf'
Mon, Aug 11 2014 4:29 PMPermanent Link

Matthew Jones

<Sergei Safar> wrote:
> Sorry for my dumb question, but I need a piece of EWB code to download a
> file and I dont know how to do it
>
> Suppose you have a file at www.mysite.com/products named file1.txt and as
> soon as the user clicks a button, the download starts.
>
> Thank you in advance.
>
> Sergei Safar

Add a TLink and set the URL to your file. Open in new window option to stop
it changing page.

--
Matthew Jones
Image