View Full Version : Save Dialog for zip file - Urgent Help!

07-03-2011, 04:57 AM
I have a ZIP file in the server. I want create a create a save dialog to save the zip file in local machine.

The below code works perfectly fine for firefox but not on IE. apparently I want the code to work in IE. this is 4th JS forum I am posting my question......any help is greatly appreciated.

<script language='javascript'>
function JBTRunZip( ){


function download(locate){
<button onclick="JBTRunZip()">generateZip</Button>
<td><input type ="Button" value ="Scarica" onclick="download('Test.zip');"></td>

07-03-2011, 02:36 PM
I know sometimes browsers get picky if you don't use / or ./ for file locations. Other than that i'm not sure. Personally i'd just use <a> :P

07-04-2011, 09:42 AM
That doesn't work though.now i am exploring the option to invoke the PHP from JS and to pop-up the File Save dialog.