HTML - Direct Download
Hello everybody
I have a question, might be dumb but... Lets assume i have a link to an image on a page, is it possible to make a code or script or something so when i click on the link to that image, it downloads it not open it in the browser??????? i know i dont have the best choice of words but i hope u understand my request thanks Similar TutorialsHi, I have a very simple website with a countdown timer on it (http://lemoeonline.freehostia.com/1.htm sorry about all the crap, it should only really have the countdown on it....I forgot to delete the rest). What I am wanting to do is have a separate webpage where users can download that page, but with a date they specify in a form. So, they would go to page a, enter a date, then download page b witch would have the customized code in it......Is this possible? Im not really sure where to start on this one, so im looking for any suggestions! Thanks alot, Lemoe Hello everyone, I'm building a html page that (I think) needs Javascript directly written into it because it won't be uploaded into a directory I can edit. A few questions: 1. Would this code "<script type="text/javascript" src="the matrix.js">" work if the file was within the document? 2. Does a JavaScript file need to be within the same web directory as a document that's referencing it? Thanks Hi, I want to download data from web but failed. I need to download some stock info (High, Low, Price ) from he http://money18.on.cc/eng/info/livein...l?symbol=00001 The problem is those data is generated thru javascript and not appearing in the html file that I've download from the above link . What I've done: 1. used Firebug to trace the js. 2. identified data is generated thru this link" http://money18.on.cc/js/real/quote/0...=1287193281904 ("00001" is the stock number and "t=128719328190" is the timestamp) 3 . used Firefox Live Http Header to trace the headers of http://money18.on.cc/eng/info/livein...l?symbol=00001 and found this (just extracted a portion of it): Code: --------------------------------------------------------- http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 GET /js/real/quote/00001_r.js?t=1287193281904 HTTP/1.1 Host: money18.on.cc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://money18.on.cc/info/liveinfo_quote.html?symbol=1 Cookie: m18-sHist=2930_0-566_0-5_0-3998_0-8321_0-959_0-1163_0-379_0-916_0-1_0 HTTP/1.1 200 OK Date: Sat, 16 Oct 2010 01:41:19 GMT Server: Apache/2.0.52 (Red Hat) Last-Modified: Fri, 15 Oct 2010 08:00:59 GMT Etag: "2e3922e5-be-3a1ac4c0" Accept-Ranges: bytes Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 142 Keep-Alive: timeout=3, max=14999 Connection: Keep-Alive Content-Type: application/x-javascript ---------------------------------------------------------- 4. used the browser to go he http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 and got "Forbidden" 5. used perl and specified those headers found in "Live Http Header" to extract the content. Still the same "Forbidden" Do you have any solution to download those data? Thanks! I am trying to figure out a way to load the index page with a requested iframe page without clicking the link. Instead of going to site.com/embeddedpage.html i want to essentially go to site.com/#iframeembeddedpage.html is there a way to load an iframe within the index page via a direct url??? Can I click on a thumbnail picture and have it open up below some text on the same page but using a larger size pix. TIA I would like to know how to add a link direct to an image page. For an instance, if we know there is a pic : http://www.htmlforums.com/images/smilies/SmileBulb.gif I am just going to give link in any other site or in my site, I want to have a background ads, i.e like we have index.html page, is it possible to have some manual added code on pic embedded page. Just the image must show on, if it is direct linked & the image must show with any manual code or ads attached ? Is this feature possible ? A company website I went to gives the user the option of downloading a program, the purpose I believe is to open a browser and automatically log the user into their online account at www.companysite.com. The user simply double-clicks an icon on the desktop which lauches the browser, etc. How can I do this? Anyone have a link to a fre script? Thanks! Chris Hello, I've some html files i will write to a cd to enable local browsing of the files. How can i force autohtml.exe to open index.html in Internet Explorer exclusively- not in other browsers? I think only such would allow photos to be viewed in an explorer window- as in viewing the file "X:/stuff/Gallery" in explorer - as opposed to in a browser window which provides only a view of each picture per click and not the whole photo gallery with more navigation flexibility etc. Ive tried opening in Firefox and Chrome but they dont allow (convenient)opening of local folders for security reasons. Any prompt help will be much appreciated:D Stef I have set up some document downloads with <a href>NameofDocument</a> , but everytime a user downloads a document a blank browser window opens and then comes the pop up to either save or open in Office. Any ideas on how to keep this blank browser window from opening or being created. 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 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 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. Hi: I would like the senior folks of my mobile home Park to be able to download a .pdf telephone directory file of our 600 home Park. I have created the file, and I'll be placing it on my Apache Server -- probably in my '..\images\' directory. Question: Would someone please give me an example of the html code needed to download a file of this type ? Thank you. -Mel Hi all My Site is hosted on linux site and i have basic cgi scripts for page counters, but does anyone know how i can create a download counter for files which can be made visible to users. I want the content to be updates live on the site ( basic count per click ) http://www.pellapushers.co.uk/mashups.html Is this possible with html code or should i be looking at cgi Regards, Alan i have absolutely no room on my comuter, not even enought to download a template and i just need the template code and then you can delete it, so can someone just download it and then give me the .html code? here is the template, thanks in advance! http://www.tunedstudios.com/comments/template/0/10/ How I could make a download option using HTML. Thanks in advance I've seen these sites all over the place used generally for adult sites but I was wondering if there's a script out there for it. I want a pay per download site but not for adult content, for video and indie films. 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! Is there any way to word a hyperlink so that it puts up the SaveFile dialogue so the user can save the hyperlink's target to their hard drive? |