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. I posted this question in couple of JS forum. I did not get any feed back......any help is greatly appreciated.
<html>
<head></head>
<script language='javascript'>
function JBTRunZip( ){
location.href="IMAN_IMAGE_FILES.zip";
}
function download(locate){
window.open(locate)
}
</script>
<body>
<button onclick="JBTRunZip()">generateZip</Button>
<td><input type ="Button" value ="Scarica" onclick="download('Test.zip');"></td>
</body>
</html>
The below code works perfectly fine for firefox but not on IE. apparently I want the code to work in IE. I posted this question in couple of JS forum. I did not get any feed back......any help is greatly appreciated.
<html>
<head></head>
<script language='javascript'>
function JBTRunZip( ){
location.href="IMAN_IMAGE_FILES.zip";
}
function download(locate){
window.open(locate)
}
</script>
<body>
<button onclick="JBTRunZip()">generateZip</Button>
<td><input type ="Button" value ="Scarica" onclick="download('Test.zip');"></td>
</body>
</html>