This can be done with javascript as follows  :

1) View/middleware (depends on your needs)  detects the  redirection
url
2) put down the redirection url in the context and redirect to
template say abc.html
3) in abc.html
     a) put the message "your are leaving our site"
     b) write javascript which just triggers the redirect after some
particular amount of time (like say 10sec,20 sec depending on your
needs) using "setTimeOut
        method"

i don't know whether we can able to achieve this using only django.


On Jun 16, 1:56 am, Bobby Roberts <tchend...@gmail.com> wrote:
> hi all... is it possible to do the following?
>
> let's say the user types in the following url into their browser:
>
> mysite.com/redirect/?http://www.newsiteout.com/whatever.asp
>
> Is it possible to snag the redirect url after the ? in the url and
> then use it to do a redirect?  I've run into a situation where a
> client has a need for an interim ("you're leaving our site") type page
> before doing a redirect.  I'm trying to make this as easy as possible
> for the client.
>
> is this possible?  I'm reading the response docs but i'm not really
> finding a good example.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to