Solved

How do I make a button that will automatically pop up the Save As dialog box ?

Posted on 2008-10-17
6
204 Views
Last Modified: 2012-05-05
How do I make a button that will automatically pop up the Save As dialog box using HTML tag? so the user canbrowse through his local drvie, and eneter the filename to save.

any help is greatly appreciated!
0
Comment
Question by:AnnieDing
  • 2
6 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 63 total points
ID: 22745678
Which files are saved to the hard drive depends on the file extension in windows.  Every user is different and many browsers are setup differently.  But if you NAME the file extension .ZIP or .PDF, or .XLS or .DOC or something that is USUALLY saved to the hard disk, you have the best chance of getting the SAVE AS dialog box.  Remember, this is user changeable, you cannot totally control it.  Find a file extension that prompts the SAVE AS dialog box on your browser, and use that -- ZIP is a good all-round choice.
0
 
LVL 54

Assisted Solution

by:b0lsc0tt
b0lsc0tt earned 62 total points
ID: 22746098
AnnieDing,
The browser is going to have issues with this.  If you don't mind sticking to IE as your browser then consider making this an HTA file instead.  The contents are similar but the extension of the file name is .hta instead of .htm or .html.  Also the browser's security is more permissive with hta files since they can only be locally run.
If you want this page to be on your web server and provide that type of page though you are out of luck, especially if this would be an Internet page.  The browser won't let Internet pages do it with html, javascript or any type of clientside script.  You could make an applet or ActiveX object to embed in the page to do this but that is not a simple thing to make.
Let me know if you have a question about this.
bol
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22925633
I object to having this deleted, especially with a refund of points.  There was no response to the expert's posts.  With the information provided in the question both expert posts could be answers.  If they weren't enough then please respond and the experts can clarify or provide more information.  If you no longer need this question then you need to post to explain that and respond to the comments.
bol
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question