I’m developing an application for use by our employees for ticket tracking on the go. Our tickets have attachments stored with them on occasion, of various file types.
Many of them are text files or images of bugs in our software, which are essential to the ticket when checking out the ticket on the go
in Javascript, how can I get the web browser to prompt the user with a ‘what would you like to open this file with?’ dialog? much like the following:

I don’t even know if this is possible through Javascript, but if so it would really help us out a lot
I am aware that we can display images in Javascript directly, but we would much rather defer the file off to the device and let it handle opening it with the correct program (in case the file type is not an image)
Oh, and we are using Sencha Touch for the application, in case that offers any features of this sort (though I couldn’t find any in the docs)
To open with the app:
Just remember: the handling of the memory of your app is upbto you. The file will be copied into your Application Document Directory space. You will need to manage it. If you no longer need the file, your application will need to delete it.
Reading the File in JS:
Implement the following in your javascript: