Issues with your account? Bug us in the Discord!

HTML help!

Rogue TraderRogue Trader Somebody stop him...
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!

Comments

  • SanfamSanfam I like clocks.
    All you're telling it to do is open up a new window with that particular URL, which should automatically invoke an instance of your preferred media player within said window. In the mean time, I'll come up with a thought on the matter...after lunch :p

    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
  • Rogue TraderRogue Trader Somebody stop him...
    Thanks Sanfam after reading those posts I just decided to make it a ZIP file and let them download it. The video quality is pretty good already on the site and this is mostly just a bonus so I don't mind it being a ZIP file at all.

    Also fixed the paper on the resumé page. Knew I had to do that but it just slipped my mind. Good catch! Thanks again.
  • DaxDax Redshirt
    Unrelated note: how long have you lived in NYC? Too bad I didn't meet you when I lived there in 2006-2007

    And nice website, clean and simple.
  • C_MonC_Mon A Genuine Sucker
    I just noticed there is some white text at the end of resumé page that is white and almost invisible for me. Is that suppoused to be like that?
  • Rogue TraderRogue Trader Somebody stop him...
    Ironically the text says 'Not displaying right?' Wonder why it is almost invisible to you.

    And I just moved up to NY a few weeks ago. I brought the cold. :)
  • JohnnyOnTheSpotJohnnyOnTheSpot Banned by request
    Like my dad said when he first introduced to us to New York.

    "Welcome to New Yawk Guys!"

    *Sticks middle finger out at passing traffic*
  • C_MonC_Mon A Genuine Sucker
    [QUOTE=Rogue Trader;178764]Ironically the text says 'Not displaying right?' Wonder why it is almost invisible to you.

    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.
Sign In or Register to comment.