The RedirectView has a ajax-feature.