Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to download a file using javascript

Hi,

How to download a PDF file using javascript when a button is clicked ?

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to download a file using javascript

I want to download pdf file from my website directly from the app

there is no such example

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How to download a file using javascript

You can use FileTransfer: http://docs.phonegap.com/en/2.4.0/cor...

[quote:] FileTransfer is an object that allows you to upload files to a server or download files from a server.[/quote]

In PhoneGap Api you can find "Quick Example" how to use FileTransfer to download file.

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to download a file using javascript

I try multiple ways and worked fine but only in the quick web test !
when i test the app in my android phone it's not working

How to apply this code in appery.io ?

Examlpe link : http://www.adobe.com/support/acrobat/...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to download a file using javascript

PhoneGap is included in your app so you don't need to include it.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to download a file using javascript

Hello - are you getting any errors?
:: http://docs.phonegap.com/en/2.4.0/cor...

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to download a file using javascript

I mean what is the event for the button ?

component Onclick ?

Sorry i am beginner in this platform

Return to “Issues”