Download 'desktop' files

Greetings!

I’ve seen a few posts on the forum that talk about downloading binary files - none of which quite seem to fit.

I’m fetching various files from a server (i.e. MS Word, PDF, etc.). Right now the best I can do is

document.location = ‘url’

Is there another way through Webix? I’ve tried html.download to no avail.

Cheers,

Bruce

Hello,

You can use webix.ajax(). Please check docs on Getting Binary Data.

You may also consider our Pdf and Excel viewers.

For example…

function cmd_down_xml_click(ev, id){
    location = "../download/1/" + id
};