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.
Follow me:
Latest posts by saki (see all)

Enter your username and password to log into your account. Don't have an account? Sign up.

Want to collaborate on an upcoming project?