Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-03-2011, 03:57 AM   PM User | #1
mskv
New to the CF scene

 
Join Date: Jul 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mskv is an unknown quantity at this point
Save Dialog for zip file - Urgent Help!

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.

<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>
mskv is offline   Reply With Quote
Old 07-03-2011, 01:36 PM   PM User | #2
BulletTimeBill
Regular Coder

 
Join Date: May 2010
Location: Bathurst, Australia
Posts: 180
Thanks: 1
Thanked 22 Times in 22 Posts
BulletTimeBill is an unknown quantity at this point
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
__________________
Disclaimer: I'm hungover 70% of the time i'm on here, any information given may not be correct, or even legible.
BulletTimeBill is offline   Reply With Quote
Old 07-04-2011, 08:42 AM   PM User | #3
mskv
New to the CF scene

 
Join Date: Jul 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mskv is an unknown quantity at this point
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.
mskv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:43 PM.


Advertisement
Log in to turn off these ads.