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.
- very simple
- mix of Ext/Touch and HTML
- PHP server side code
Use whenever you need to trigger the browser download mechanism by clicking a button or link.
Source CodeIf you want to see the example code, login or sign-up. Free membership is available.