View Full Version : Beginner - Download function

9 Sep 2011, 11:26 AM
Sorry for such a beginner question but I'm in the process of learning javascript along with Sencha Touch.
I have all my eBooks on my local fedora server and dont like having every eBook on my iOS device. I am using the nested list section to create an eBook download site. Its working perfect for a directory listing that is readable and looks nice, the problem im running into is that once i get to the actual file to download to the device, the CodeBox function kicks in.

I have tried to replace the section of code

getDetailCard: function(record, parentRecord) { return new Ext.ux.CodeBox({
value: 'Loading...',
scroll: {
direction: 'both',
eventTarget: 'parent'

With multiple download functions i have found online from tutorials and other forums.
I originally tried to keep the getDetailCard untill i found that it was part of Sencha instead of javascript.

Over all i would like to be able to treat the end file in a Directory Tree as a regular link so that safari will react to the book.epub file and ask if you want to open in ibooks, and on the android devices i have the option to just download the epub file.

Any help and or direction would be great.

13 Sep 2011, 11:26 AM
Anything? Okay...