Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
redirect after download?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
daysyn  
View profile   Translate to Translated (View Original)
 More options 29 Oct, 17:32
From: daysyn <jtb...@daylight.com>
Date: Thu, 29 Oct 2009 10:32:07 -0700 (PDT)
Local: Thurs 29 Oct 2009 17:32
Subject: redirect after download?
Hello,

    I'm working on my first pylons app, and part of it allows a user
to download a file.  Following the example in ch.6 of the Pylons Book,
that is working ok.  I can successfully select a file and have it
download to my desktop.
    I would like to be able to redirect the user to another page after
the download has been initiated, or at least put up a "yay, it's
finished" page, but that doesn't appear to be possible.  So I was
wondering what it is that one normally does in a case like this?  What
I've been able to find suggests that it is necessary to open a
separate window...does that sound right?  Or is there a better way?
     Pointers to any generic documentation on how to do this would be
appreciated; pointers to pylons-specific documentation (or recipes)
would be even better.

Thank you,
Tim


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile   Translate to Translated (View Original)
 More options 29 Oct, 20:12
From: Mike Orr <sluggos...@gmail.com>
Date: Thu, 29 Oct 2009 13:12:39 -0700
Local: Thurs 29 Oct 2009 20:12
Subject: Re: redirect after download?

On Thu, Oct 29, 2009 at 10:32 AM, daysyn <jtb...@daylight.com> wrote:

> Hello,

>    I'm working on my first pylons app, and part of it allows a user
> to download a file.  Following the example in ch.6 of the Pylons Book,
> that is working ok.  I can successfully select a file and have it
> download to my desktop.
>    I would like to be able to redirect the user to another page after
> the download has been initiated, or at least put up a "yay, it's
> finished" page, but that doesn't appear to be possible.  So I was
> wondering what it is that one normally does in a case like this?  What
> I've been able to find suggests that it is necessary to open a
> separate window...does that sound right?  Or is there a better way?

I don't think you can do this except maybe with Javascript.  Browsers
usually switch pages based on a link on the page or a redirect in the
HTTP headers (with a 3xx status).  Neither of these are feasable with
downloads.

--
Mike Orr <sluggos...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Feifarek  
View profile   Translate to Translated (View Original)
 More options 29 Oct, 20:16
From: Matt Feifarek <matt.feifa...@gmail.com>
Date: Thu, 29 Oct 2009 15:16:11 -0500
Local: Thurs 29 Oct 2009 20:16
Subject: Re: redirect after download?

On Thu, Oct 29, 2009 at 3:12 PM, Mike Orr <sluggos...@gmail.com> wrote:

> >    I would like to be able to redirect the user to another page after
> > the download has been initiated, or at least put up a "yay, it's
> > finished" page, but that doesn't appear to be possible.  So I was

What about turning it around; put up your "yay" page and then initiate the
download via script or a meta tag. Maybe make the "yay" message more like
"download should be coming now..."

Something like this:
http://somafm.com/play/spacestation

I think Mike is right; there is no way to embed instructions for the browser
into a downloaded file.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
daysyn  
View profile   Translate to Translated (View Original)
 More options 30 Oct, 15:49
From: daysyn <jtb...@daylight.com>
Date: Fri, 30 Oct 2009 08:49:01 -0700 (PDT)
Local: Fri 30 Oct 2009 15:49
Subject: Re: redirect after download?

On Oct 29, 2:16 pm, Matt Feifarek <matt.feifa...@gmail.com> wrote:

> On Thu, Oct 29, 2009 at 3:12 PM, Mike Orr <sluggos...@gmail.com> wrote:

> > >    I would like to be able to redirect the user to another page after
> > > the download has been initiated, or at least put up a "yay, it's
> > > finished" page, but that doesn't appear to be possible.  So I was

> What about turning it around; put up your "yay" page and then initiate the
> download via script or a meta tag. Maybe make the "yay" message more like
> "download should be coming now..."

> Something like this:http://somafm.com/play/spacestation

> I think Mike is right; there is no way to embed instructions for the browser
> into a downloaded file.

Ok, thanks to you both.  After further searching, it does seem like
Javascript would be required to make it more dynamic in the way I was
originally thinking.

Having the "yay" page come up and then automatically start the
download would be fine, though I assume that would mean I would have
to temporarily leave the sheltering embrace of pylons for the script.
I guess I could also just put a "Done" button somewhere below the
"download" button and have the user click that to move on.

Anyway, thank you for the responses.  Knowing what is and isn't
possible seems to be half the battle sometimes.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile   Translate to Translated (View Original)
 More options 30 Oct, 18:06
From: Mike Orr <sluggos...@gmail.com>
Date: Fri, 30 Oct 2009 11:06:05 -0700
Local: Fri 30 Oct 2009 18:06
Subject: Re: redirect after download?

On Fri, Oct 30, 2009 at 8:49 AM, daysyn <jtb...@daylight.com> wrote:
> Having the "yay" page come up and then automatically start the
> download would be fine, though I assume that would mean I would have
> to temporarily leave the sheltering embrace of pylons for the script.
> I guess I could also just put a "Done" button somewhere below the
> "download" button and have the user click that to move on.

Somehow this issue doesn't come up on other sites.  I'm not sure if
you have unusual requirements or you're not considering all the UI
possibilities.  Maybe it's because when people download something,
they're either done with the site (e.g., for a tarball) or want to
remain on the same page (e.g., for a PDF link).

Perhaps the most succulent way would be a redirect HTML page (3xx)
that says, "Your download will begin shortly.  <Click here> if it
doesn't.  <Continue onward / Return to product summary>".   The
redirect would cause the download to automatically start, but would
not move from the page.  The page would technically be an error
message, but if you use your regular site template it will have all
the logos and menus people expect, so it'll look like a regular page.

--
Mike Orr <sluggos...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Feifarek  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 17:08
From: Matt Feifarek <matt.feifa...@gmail.com>
Date: Sun, 1 Nov 2009 12:08:43 -0500
Local: Sun 1 Nov 2009 17:08
Subject: Re: redirect after download?

On Fri, Oct 30, 2009 at 1:06 PM, Mike Orr <sluggos...@gmail.com> wrote:
> Somehow this issue doesn't come up on other sites.  I'm not sure if
> you have unusual requirements or you're not considering all the UI
> possibilities.  Maybe it's because when people download something,

daysyn, don't forget the old-fashioned <META> that redirects/refreshes! I
think that's commonly used, and isn't javascript.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 18:03
From: Mike Orr <sluggos...@gmail.com>
Date: Sun, 1 Nov 2009 10:03:41 -0800
Local: Sun 1 Nov 2009 18:03
Subject: Re: redirect after download?

On Sun, Nov 1, 2009 at 9:08 AM, Matt Feifarek <matt.feifa...@gmail.com> wrote:
> On Fri, Oct 30, 2009 at 1:06 PM, Mike Orr <sluggos...@gmail.com> wrote:

>> Somehow this issue doesn't come up on other sites.  I'm not sure if
>> you have unusual requirements or you're not considering all the UI
>> possibilities.  Maybe it's because when people download something,

> daysyn, don't forget the old-fashioned <META> that redirects/refreshes! I
> think that's commonly used, and isn't javascript.

Will that work with downloads?  What if the download isn't finished by
the refresh timeout?

--
Mike Orr <sluggos...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Feifarek  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 20:26
From: Matt Feifarek <matt.feifa...@gmail.com>
Date: Sun, 1 Nov 2009 15:26:19 -0500
Local: Sun 1 Nov 2009 20:26
Subject: Re: redirect after download?

On Sun, Nov 1, 2009 at 1:03 PM, Mike Orr <sluggos...@gmail.com> wrote:

> Will that work with downloads?  What if the download isn't finished by
> the refresh timeout?

Interesting question. I don't know.

Though, people like Sourceforge have been doing this for years. Maybe once
the download starts, the browser won't cancel it.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Bock  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 15:14
From: Tim Bock <jtb...@daylight.com>
Date: Mon, 02 Nov 2009 08:14:22 -0700
Local: Mon 2 Nov 2009 15:14
Subject: Re: redirect after download?
Gentlemen,

        Thanks again for your illuminating responses.  As you have no doubt
surmised, most of the problem is that I don't know what I'm doing!
        I'm not doing anything esoteric; I'm just a re-noob whose last serious
foray into web apps was with cgi/perl over ten years ago.  So I'm sure
that the things I want to do are pretty standard...it is just that I'm
woefully ignorant.  Having said that, I've found Pylons a fairly
comfortable ride, and put up most of the app without too many issues.
        I did note Matt's suggestion of the META tag in an earlier email, but a
quick google search didn't yield anything that I was able to connect
with downloading.  But as you've indicated that this is a common
solution, I will take a better look this time around.  I don't mind
reading documentation; sometimes the problem is not knowing enough to be
able to ask the right question.
        Mike's suggestion about the redirect is also interesting, and
immediately made sense.
        I appreciate the pointers!

Best,
Tim


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Feifarek  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 18:52
From: Matt Feifarek <matt.feifa...@gmail.com>
Date: Mon, 2 Nov 2009 12:52:05 -0600
Local: Mon 2 Nov 2009 18:52
Subject: Re: redirect after download?

On Mon, Nov 2, 2009 at 9:14 AM, Tim Bock <jtb...@daylight.com> wrote:

>        I did note Matt's suggestion of the META tag in an earlier email,
> but a
> quick google search didn't yield anything that I was able to connect
> with downloading.  But as you've indicated that this is a common

If you look at the source of the page I mentioned:
http://somafm.com/play/spacestation

You can see an example. There may be script in there, too... I haven't
parsed it thoroughly.

Also, check out this:
http://sourceforge.net/projects/freevo/files/kaa-metadata/0.7.7/kaa-m...

Sourceforge has been doing this for years. Though I can't see the meta tag
in there anymore; they must be using a script.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google