Description
This example shows how to create a button or link for downloading a file. The example creates hidden helper iframe and hidden form. Iframe is the target of the form submit. Return the correct HTTP headers from the server is crucial.
Result
Main Features
- very simple
- mix of Ext/Touch and HTML
- PHP server side code
Use Cases
Use whenever you need to trigger the browser download mechanism by clicking a button or link.
Source Code
If you want to see the example code, login or sign-up. Free membership is available.I'm a well seasoned developer, consultant and educator of web applications based mainly on Sencha libraries, PHP, MySQL and Node.js. Besides (Apple) computers, I love photography and mountain biking.
Follow me:
Latest posts by saki (see all)
- Ext, Angular, React, and Vue - 27. June 2019
- The Site Resurgence - 11. February 2018
- Configuring ViewModel Hierarchy - 19. June 2015