Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Saveas Dialog box
10-11-2012, 10:47 AM #1
- Join Date
- Sep 2012
- Thanked 0 Times in 0 Posts
Saveas Dialog box
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.
var content = window.opener.LoadLetterinPreview();
<div id="print" style="border:1px red solid; width:650px;"></div>
Last edited by deepsan; 10-11-2012 at 10:51 AM.
10-11-2012, 11:50 AM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,590 Times in 2,568 Posts
Internet Explorer's JScript (only) lets you write to the Windows local file system by means of the harmless execCommand() function. It is possible in IE in certain circumstances to use ActiveX objects to access the directory and read files. This is not recommended for a variety of reasons.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.