Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB
My Carrier: Vodafone

Javascript: Download file & create hyperlink to download

***Playbook***
I'm looking for a script, that download a file (from a website) and saves it to your PB. After that there should be a hyperlink with: "Open download" or something like that. It has to open the 'stored' download and not from the download link.

Any ideas how I can get this to work ?

Thanks in advance!
Jeroen
Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Javascript: Download file & create hyperlink to download

Developer
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB
My Carrier: Vodafone

Re: Javascript: Download file & create hyperlink to download

I don't need that. The files that I want to download, are uploaded by the users themselves; the file name changes so I can use an universal "open download" button
Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Javascript: Download file & create hyperlink to download

The extension does exactly what you asked for in the first post. Maybe you could explain better what you want.
Nuno
Developer
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB
My Carrier: Vodafone

Re: Javascript: Download file & create hyperlink to download

What I"m creating; you can download an 'extension'. The javascript has to DOWNLOAD and SAVE it to the PB's memory. After that, there have to be a (hyper)LINK the that file you've downloaded. The FILENAME CHANGES so I can't use a public 'open' button !

Any scripts ?!
Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Javascript: Download file & create hyperlink to download

I'm sorry, either you are not explaining yourself properly or haven't read the link I sent you. That extension does exactly what you need.

Nuno
Developer
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB
My Carrier: Vodafone

Re: Javascript: Download file & create hyperlink to download

I took a quick look at that link, but is doesn't seems to have the 'magic "open download" ' button. I'll experiment with that link and files in the next few hours !
Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Javascript: Download file & create hyperlink to download

the function returns a path to the local file which you downloaded.

what  to do with it is up to you. there aren't "magic buttons" anywhere.

Nuno
Developer
Posts: 39
Registered: ‎02-07-2012
My Device: Blackberry curve 8520 // Blackberry playbook 64GB
My Carrier: Vodafone

Re: Javascript: Download file & create hyperlink to download

Edit; just need a REMOTE FILE DOWNLOADER 

Looking for a Script that download this ; http://bbsample.comze.com/test.zip  and SAVES it to THE DOCUMENTS FOLDER

 

any suggestions ?

 

thanks in advance

Developer
Developer
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Javascript: Download file & create hyperlink to download

Hi jeroen13,

 

nunodonato answered your question very well. You only need to try out the linked extension since it provides remote download/upload of files to/from the PlayBook. I worked with it in some of my clients projects and it is working really well so far.

 

Regards

LBP


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.