Solved

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

Posted on 2008-10-17
6
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

623 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