Solved

how to write the script to download file?

Posted on 1998-07-20
6
452 Views
Last Modified: 2008-02-26
how to write the script to download file from server? i'm creating home page and i want users to down load one perticular file in to their desktop.  when ever user click on the start dounloadind buton then the new window should should pop to specify where to store the file. Then on "ok" click download should begin from server. How do i write the html code for that. I also have frontpage98 but i didn't find any helf in their.
Where can i find and sample examples different kinds of trick of writing homepage?
0
Comment
Question by:patelb
[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
6 Comments
 

Expert Comment

by:aj1070798
ID: 1844756
.
0
 
LVL 2

Expert Comment

by:Quixote
ID: 1844757
In all cases where the web browser does not understand the type of file being downloaded, it should give the user the option to download and save it.  You will only run into problems if the file is something the browser understands, like a .gif or .jpg or .txt.  If it is this type of file, simply create a normal link to it and tell the user to choose File|Save As... once they see the file in their browser.

  If the file is a different kind of file (.exe or .doc or .xls or whatever), then just create a link to it, and the option to save should be given.

  For example, if your file is "MyDoc.doc", and it is in the same directory as your HTML page, then make this link:

<a href="MyDoc.doc">Click to download My Doc</a>


In regard to your second question, of where to go to learn this stuff, try these two first:

http://www.builder.com
http://www.webmonkey.com

Good luck!
-Quixote
0
 

Author Comment

by:patelb
ID: 1844758
thank u for replying me is there any way i could do this in frontpage98. is there any way i could check the file if it's already axist then just update file or or some table (access97 table)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1844759
as Quixote wrot, just link (CTRL-K) to the file. You cannot check if it's on the local harddrive, as you cannot read from the surfer's HDs
0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1844760
btw aj1, in order to be included in email notification, you do not have to fill out the textarea - just check the button and hit "Submit"
0
 
LVL 12

Accepted Solution

by:
Otta earned 20 total points
ID: 1844761
Try:

<A HREF="http://www.MYHOST.com/filename.ext">
Hold the SHIFT key and click <B>here</B> </A>
to download this file.

The SHIFT-CLICK causes the "Save As" menu to appear,
in at least *SOME* browsers.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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 Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

636 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