jQuery download a zipfile from a button?
Posted
by FFish
on Stack Overflow
See other posts from Stack Overflow
or by FFish
Published on 2010-05-20T23:23:41Z
Indexed on
2010/05/20
23:30 UTC
Read the original article
Hit count: 319
Quite embarrassing how much time I spend trying to get to download a zipfile from a button....
<button type='button' id='button-download'>download zipfile</button>
$("#button-download").live("click", function() {
$.get("http://localhost/admin/zip/002140.zip"); // doesn't work?
})
I need something bullet proof here, that's why I ask here, thanks.
© Stack Overflow or respective owner