On Jul 16, 2:56 pm, Chris Seberino <cseber...@gmail.com> wrote: > On Jul 15, 3:57 am, Oleg Lomaka <oleg.lom...@gmail.com> wrote:> First without > javascript. You cat check URL of HttpRequest and if it is without > > #anchor element, then send redirect to the same URL with #anchor. > > Yes redirection is a great non-Javascript way to do this. > > Is there ANY way to preserve the old form data through the > redirection? > > (Imagine an invalid form that gets kicked back to the user.....If I do > a redirection must I lose the prepopulated data?) > > cs
Redirection will *not* work. As I said above, there is no way to determine from the server whether or not a URL has the anchor already, because that is never sent to the server. So if you always redirect when you receive a URL without the anchor, you will redirect continually. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.