dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Saveas Dialog box

  1. #1
    Join Date
    Sep 2012
    Posts
    6

    Saveas Dialog box

    Hello All

    I have a js function which load a whole letter in a div and have a print button that allow the user to print the letter. I have to add an option that allow the user to save the letter in a location.I was trying to do something like a saveas dialog which the user can save the letter at any location.Can anyone please help me to achieve it.Note that I am using IE8. Thank you, below is part of my code.

    <script type="text/javascript">
    window.onload =function()
    {
    var content = window.opener.LoadLetterinPreview();
    document.getElementById("print").innerHTML=content;
    }
    </script>

    <div id="print" style="border:1px red solid; width:650px;"></div>

  2. #2
    Join Date
    Nov 2006
    Location
    Oakland
    Posts
    500
    The web browser already has a "Save as" menu that is more reliable and secure than allowing Javascript to trigger a file save.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles