> I use the form plugin
> $(document).ready(function() {
>     var options = {
>         target:        '#divShow',
>         beforeSubmit:  showRequest,
>         success:       showResponse
>     };
>     $('#myForm').ajaxForm(options);
>
> });
>
> This works, but in the form php file, I'm trying a redirection but the
> page redirected displays in #divShow. How can I do to redirect to the
> page not to be displayed in the div?
>
> <?php
> header("Location:http://localhost/";);
> ?>
> Thanks


The browser will not follow a redirect on an XHR request.  Why not
just skip ajax if you're going to redirect?

Reply via email to