Solved

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

Posted on 2008-10-17
6
176 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now