Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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>

  • #2
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •