Issues with your account? Bug us in the Discord!
HTML help!
Rogue Trader
Somebody stop him...
in Zocalo v2.0
I've been trying to figure out this problem on my website now for a few days and I just can't find the solution! So I figured I ask the collective wisdom of you guys and gals to see if I can figure this one out.
Basically on my website I have a few videos playing (my demo reel and some other examples) and at the bottom of the page I have a button that allows you to download a higher res version of the demo reel. But for some reason instead of downloading in the traditional sense it opens a new window displaying the quicktime logo. Below I have the code I used for it.
{p}{center}{font size='2'}Download a higher quality version of my Demo Reel Here{/font}{/p}{form}{input type="button" value="Download Now!" onClick="window.location.href='/Lance_Coviello_Reel(h264).mov'"}{/form}{/center}
(I know the tags are wrong but I did that so everyone could see the code :) )
also here is the link to [URL="http://www.lancecoviello.com"]my website[/URL]
Thanks!
Basically on my website I have a few videos playing (my demo reel and some other examples) and at the bottom of the page I have a button that allows you to download a higher res version of the demo reel. But for some reason instead of downloading in the traditional sense it opens a new window displaying the quicktime logo. Below I have the code I used for it.
{p}{center}{font size='2'}Download a higher quality version of my Demo Reel Here{/font}{/p}{form}{input type="button" value="Download Now!" onClick="window.location.href='/Lance_Coviello_Reel(h264).mov'"}{/form}{/center}
(I know the tags are wrong but I did that so everyone could see the code :) )
also here is the link to [URL="http://www.lancecoviello.com"]my website[/URL]
Thanks!
Comments
The key problem you're going to have to overcome is skipping over the default mime associations your browser is configured with. Immediately upon seeing a quicktime file, it wants to open it within quicktime itself and play that file. In the mean time, I'll research. A viable alternative would simply be zipping the file up and using the onclick to trigger that.
Two options exist. One would be the best way, which would be using a redirect script to shove your download off to another document, which itself would package it up in a different manner (swapping mime-types to make it work and invoking an instance of fetch/download.
The second would be using [B]document.execCommand[/B] with a [I]SaveAs[/I] action attached to it, but that is neither terribly secure nor allowable under strict doctypes. Also, it won't really work too well under anything that's not Internet Explorer, so I' shy away from it.
A quick google search brought up this example of the item I described first, detailed [URL="http://www.htmlhelp.com/faq/html/all.html#force-download"]here[/URL] and [URL="http://www.webhostingtalk.com/showthread.php?t=429789"]here[/URL].
The second idea has some detailed instances [URL="http://www.daniweb.com/forums/showthread.php?t=31140&page=2&highlight=javascript+download+save"]here[/URL], I believe.
I'd suggest sticking to the first, as simply making up a mime-type would work fairly well.
It's also a bit of a tangent, but for your Resume page you may want to consider reducing the contrast of the background by some 50-70%. Right now, it's rather difficult to read, as the folds in the "paper" are more prominent than most of the text. It also loops midway through, which means you may want to create a quick and simple extension of some sort in photoshop (or simply crumple a paper up and scan it in at a higher resolution)
Also: I love video editing. Really waiting to get back into it as a bit of a hobbyist again, perhaps expanding my professional experience a bit :D
Also fixed the paper on the resumé page. Knew I had to do that but it just slipped my mind. Good catch! Thanks again.
And nice website, clean and simple.
And I just moved up to NY a few weeks ago. I brought the cold. :)
"Welcome to New Yawk Guys!"
*Sticks middle finger out at passing traffic*
And I just moved up to NY a few weeks ago. I brought the cold. :)[/QUOTE]
Actually all text from "Education" and down is white and unreadable because of the white paper background. Might be only me, I'm using Opera 9.63.