1

Hi as u understand from question title, I want client side file generation and download. I know there is Downloadify that exactly do what I said. But downloadify is using flash + javascript. I just want to do that with jQuery. I have a text and I have a link. When user click the link, it will generate a file with that text and ask user to download it.

Best Regards.

Sedat Başar
  • 3,740
  • 3
  • 25
  • 28
  • Try [this](http://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file/4551467#4551467) – David Gallagher Nov 15 '11 at 07:29
  • Use php or asp instead. Html 5 is not supported by all browsers. Avoiding flash is good though. – OptimusCrime Nov 15 '11 at 07:32
  • Depends on your usage. IE7 and lower don't support it but IE8 supports data URIs under 32kb while most other browsers support them. If you don't care about the older browsers then it should be fine. – David Gallagher Nov 15 '11 at 07:46
  • Hi David, I tried that what u suggest me. But it downloads the data as a .part file how can i set the filetype? Actually i want something excatly like this http://vcardmaker.com/ – Sedat Başar Nov 15 '11 at 08:07

1 Answers1

0

AFAIK this cannot be done with javascript only. That's the reason why Downloadify uses Flash. Another possibility is to generate the file on the server and then point your link to the server side script that will serve the file and the user will be able to download it.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928