If I understand your question and your code properly, the problem is that
you are expecting a redirect, but what's happening is that the raw HTML
from the view is being returned to your JavaScript function, which does
nothing with it.

It seems like what you should do is just do a normal HTML form with an
"action" tag that just redirects to your view. Since you're not accepting
any return values in your JavaScript, you're not doing any "AJAX," so the
JavaScript is an unnecessary complication. If you cut out the JavaScript
entirely and make your button a normal "submit" button it will have the
desired behavior.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to