http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Computer Programming \ HTML

Click here to log in (you must be logged in to post comments).

AuthorComment
Vectris
Ultralisk
avatar
Posted: 2 Feb 2008
14:35 GMT
Total Posts: 375
Ok so I'm creating a site completely out of HTML (no WYSIWYGs, just plain old notepad) and I'm going to use it to post all of my calc programs and include more information on them etc. Anyways I'm getting to the point were I need to allow people to download them. I have tried <a href="File Name">Download</a> and when cilcked this actually opens the file (a zip file) and if you right click and select "save as" it will pretty much "download" it. But is there a HTML code for making a download?
john777
Ultralisk
avatar
Posted: 2 Feb 2008
15:11 GMT
Total Posts: 289
I'm pretty sure that that is what you do. I don't kow of another way.
Vectris
Ultralisk
avatar
Posted: 2 Feb 2008
15:14 GMT
Total Posts: 375
ya thats what i thought, basically i want to get it to where you can click it, and it asks you were you want to save it, and then it downloads, instead of opening up.
tifreak8x
Administrator
avatar
Posted: 3 Feb 2008
08:05 GMT
Total Posts: 419
That could be set up like that on your computer, that it "remembers" to simply open up zip files instead of saving.

---
Bringing you Pokemon, for your calculator.
ryantmer
Wraith
avatar
Posted: 3 Feb 2008
20:30 GMT
Total Posts: 692
How to treat links is handled by the browser... If you link to a .zip file on your server with your webpage, and somebody right-clicks the link and selects "Save", they will be able to download the .zip file. Likewise, if they just click the link, they should be presented with the standard "Open", "Save", etc. dialog.
gulyman
Goliath
avatar
Posted: 4 Feb 2008
19:20 GMT
Total Posts: 144
On some download sites you click on a link, it brings you to a new page, and the file download starts automatically. Is that an option?

ryantmer
Wraith
avatar
Posted: 4 Feb 2008
21:32 GMT
Total Posts: 692
Yeah, that's a browser thing, at least it is in Opera. I would assume it is the same for others. Basically, when you create a link to any file, the browser follows that link and decides what to do with it. For example, when you go to a .html page, the browser will automatically open it and display it. If you wanted to, you could make your browser (again, at least Opera) download every web page to your hard drive, and then open it with whatever you wanted. Likewise, when you link to a file, such as a .zip, the browser should identify it as a .zip file, and will then do as it is set to do, whether that is to open it, save it, extract it, or what have you.

Edit: Nevermind, I see what you mean now (I think). You mean you want to go a new webpage AND download the file when you click the link, like on a Sourceforge page?
Vectris
Ultralisk
avatar
Posted: 5 Feb 2008
20:04 GMT
Total Posts: 375
ryan ya thats what i mean, but what im asking is how dooooo you make hte browser save when you click it instead of opening, ik how to open new pages etc. i just want a simple click, and then dialog box that comes up asking where to save, then it starts downloading to specified area

the dialog box is probably part of hte save, you don't have to create, just like with right clikc "save target as"
ryantmer
Wraith
avatar
Posted: 6 Feb 2008
05:52 GMT
Total Posts: 692
<a href="filesystem/file.zip">Link title</a>

I think.
Vectris
Ultralisk
avatar
Posted: 6 Feb 2008
15:39 GMT
Total Posts: 375
whereas filesystem=what?

the directory?

if its i dont htink it will work because when i upload to the internet you have a network folder you store the html pages in, also the file goes in the folder. I have to leave the href directory blank, this makes it check only the files in the same folder. I'm not sure if you can direct to that folder, even then what would that do, but the same thing?
john777
Ultralisk
avatar
Posted: 6 Feb 2008
16:55 GMT
Total Posts: 289
I'm almost certian that is what he means. Do you want to give us a webpage to check to see if it works?
Vectris
Ultralisk
avatar
Posted: 6 Feb 2008
17:09 GMT
Total Posts: 375
i already tried it, i dont need the directory set, without it, it does the same thing, which is opens the file instead of 'save target as'
tifreak8x
Administrator
avatar
Posted: 6 Feb 2008
20:48 GMT
Total Posts: 419
Again. this is a setting on YOUR computer. You or someone else has selected the little check box that says "Remember this for future file downloads" or some such non-sense. The fact it goes to the file means the link is perfectly fine.

How you unset that is... I dunno. Look in options in your browser.

---
Bringing you Pokemon, for your calculator.
ryantmer
Wraith
avatar
Posted: 7 Feb 2008
06:57 GMT
Total Posts: 692
In Opera, for example, it is under Tools > Preferences > Advanced > Downloads, and you can set whether to open files, use a plugin, save, show download dialog, etc.
Vectris
Ultralisk
avatar
Posted: 7 Feb 2008
18:24 GMT
Total Posts: 375
well ik its possible, but mabye not with basic html, it may require a seperate program, like to embed fonts u need a xtra program
CoffmanRunner
Ultralisk
avatar
Posted: 2 Mar 2008
19:00 GMT
Total Posts: 235
tifreak8x writes
////////////////////////////////////////////////////////////////////////
Again. this is a setting on YOUR computer. You or someone else has selected the little check box that says "Remember this for future file downloads" or some such non-sense. The fact it goes to the file means the link is perfectly fine.

How you unset that is... I dunno. Look in options in your browser.
////////////////////////////////////////////////////////////////////////

This is completely true - there is NO HTML to make a file download. All you can do is link to it and depending on people's settings it will either open it with X program or it will save it to the disk

---
Never gonna let you down...
Zachary940
Wraith
avatar
Posted: 4 Mar 2008
17:12 GMT
Total Posts: 714
CoffmanRunner is 200% right. It IS a setting on your computer. If I where to guess you are probably using FF. There is no special programs, no special code, no special anything. Just plain old HTML, and it's not even a coding issue. Just a simple setting on your web browser.

---
It is much easier to suggest solutions when you know nothing about the problem.





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org