HTML - Telling A Link To Start A Download Instead Of Heading To A Destination
Hey guys! It's been awhile, but life has been busy and doing new things with web pages hasn't been on the top of my list. However, I've run into a small issue which will hopefully be easy to solve.
I've been doing some scripting for a program which exports and imports scripts in an XML setup. I've been posting those scripts on another site, and, for now, have been instructing users to simple right+click save as... the scripts in order to get them, because, when they click on the link, it tries to bring them to a page of the XML. Is there any way for me to tell the links to simply download the XML file (effectively like right+click save as... except it will go to wherever they download stuff) if it is clicked? Similar Tutorialshello, i've had a bit of a tif with ie6 and some random 3px it was putting in between 2 divs.. with some suggestions it's been solved by putting a -3px margin on top (by the way you can view this live he http://www.redrabbitproductions.co.uk/test/default.html ) unfortunately this mucked everything up for all the other browsers that were reading the code correctly. i know there is a way that i can get these browsers to ignore that -3 margin, but how? hi, can someone tell me how to write a link to force the download option to appear in the browser when my link to an XML page is clicked, not just open it as a page in the browser. Cheers Martin Hi, I like to know how to make a file download in a new window, like most sites have, I want to add some adsense in that page along with the link to the manual download link if automatic download fails. Thnx I have placed some mp3 files into a folder in my httpdocs. Then I emailed the link to a file. When I select the emailed link, the mp3 plays. But I'd like to download the file, but I don't see where/how. When I right click the link, my only choices a Select All Look Up... Translate... The greyed-out (unavailable) choices a Cut Copy Paste Clear Shouldn't it be when I right click the link the choices should be Save Save As I'm using IE, and the same is true when i put the url in the browser of when I Alt-F. Save is still greyed out. How can I do this correctly so it's easy to download the file? Thanks. Say for example i wanted to create a stream for an mp3 file, i would create an .m3u file with just the url location inside. Could i create some kind of extension for a 'normal' file such as a rar. or zipped file. Just the url location inside some kind of file? Ok so I am tryin to make a link to where a person can download a file from my website. Not quite sure on how to do this. Any answers? Hello, I can't seem to find the syntax which allows users to download a file by clicking on a link. For example, a user would click on a "Download" link which would pop up the download dialog box which prompts the user to save the file to their hard drive. Simply doing an a href link opens up and plays the file instead. Just to note, the file they would be downloading would be an mpg file. Thanks in advance for your help! I'm having trouble providing the best download experience for my users across all browsers. In my opinion, the best experience is to have the user stay on the same page and just have the save dialog box pop up. Here are three ways I've tried: HTML Code: <a href="installer.exe">download installer</a> <a href="installer.exe" target="_blank">download installer</a> <a href="javascript:void(0)" onclick="dynamicallyInsertIframeWithExeAsSource()">download installer</a> All three behave differently in different browsers. Some will open a new browser window that covers the current one. Others flicker that new window briefly before closing it. Some will just whiten out the current page. I just want to know what method will work consistently across all browsers and not have new windows popping up, weird flickering, or whitening. so basically i just want to put a download link on my website, where you click on it and the download thing pops up, just a file from my server Probably an question that everybody will be able to answer, but Im a total newbie :-) I know that is has something to do with a ftp client hehe will be happy for any help, thx guys and girls anyway :-) Don Is there a way to setup a link to download (or offer to download with the open/save box) a jpeg rather than display it in the browser? I need to create a link on my company's website. Once the users click the link, it should download an excel file. the file is dynamic and it should change according to the person that logs in.. I am new to html. can you guys provide me ideas to do this... Thanks Ragha Hi, I am building the download centre of http://www.i-conica.net I have a directory structure similar to the image in this thread. http://forum.i-conica.net/cgi-bin/fo...?m-1207092405/ The bottom image, my plan is to have the download page, with continually updated information on the new versions of software, put the software files in a separate folder and link to the folder, i thought if there were only one file in there ending .exe it would download it? It doesn't it just displays the directory. I wanted to be able to just throw the files in their own folder and not have to worry about changing links to the file. because the folder would remain the same. Is this possible? Thanks. what's the HTML code to download a pdf from a link. please help i really need this code for my website.. Hello, I have a simple web page that contains an href link. When a user left clicks the link I would like to download a file. Testing the page local to my pc works fine, but when I uploaded in a Server, didn't worked correctly. Instead of downloading the file, it actually opens the file. What should I change? I am using a vserver in Plesk enviroment if that is of any use. Should I change something to the server? Hi all, I need to have a link on my web page which allows the user to download a file on the c: drive of my web server. Basically when they click the link they will be prompted to download this file. Any ideas on how this can be done? I tried the following on FF but it does not work... <a href="file:///C:/testUpload/CA_P1470H_2008-1209-143322.xls">major_bob_12-09.xls</a> Thanks in advance for any help. Hi everyone, I was asked to upload a video to our server... and I added this code to the webpage when I click it, a download does not start... it just says page not found Code: <p align="center"><br> <font face="Arial"><b><br> Click the link below to watch the video</b></font></p> <p align="center"><b><font face="Arial"><a href="..IMG_1953.MOV">MDS</a></font></b></p> I have this; You can download a <a href="hpswmtmreg.doc">Word Document</a> file, (click to open, right click to download). <br><br> You can download a <a href="hpswmtmreg.zip">Zip</a> file, (right click to download). I thought it was simple, straight forward, but I get server errors (from my host). Is there something special abpout .doc files or .zips for that matter. Am I doing something wrong? Thanks Hello all, I have created a basic slideshow from dreamweaver's template provided. I want to add one link right next to the 'Next' button that says 'download full size image'. Is this possible to do without manually do it and manually pointing it to the correct file? I would appreciate any help. Thanks, Lorne Hello I am having trouble understanding destination anchors(xhtml transitional) First you do this right: <a name="pagetop"></a> then you do this <a href="#pagetop"> Page top </a> what I dont understand is how you mark the place in the site where you are suppose to jump to. I am trying to link to a specific part of a page, the instructions tell me to: Quote: add # along with the destination anchor id to your href This is my href: Quote: Read the <a href="http://buzz.headlabsfirst.com title="Read all about caffeine on the buzz">Caffeine buzz</a> I have added in bold below <a id="#coffee"</a> so my mark up looks like Quote: Read the <a href="http://buzz.headlabsfirst.com <a id="#coffee"</a> title="Read all about caffeine on the buzz">Caffeine buzz</a> but it does not take me directly to the coffee section, what am I doing wrong please? |