Yeah, on the form_remote_tag I added the :before so it looks like this...
form_remote_tag(:update=>"mydiv",
:before=>"if($(''checkbox'').checked)
{this.form.submit();}",
...etc...
it seems to work.
On 9/5/05, Josh Charles
<josh.charles-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Perhaps send a bit of javascript to the client to handle the redirect:
>
> window.location = "newurl"
>
> It''s not pretty, but it should work. It''ll get tricky if
you want to
> send the form information through the redirect as well. It sounds
> like you might need to preprocess the form before it gets submitted.
> If the checkbox is checked, submit the form to one page; if not, send
> it to the other page.
>
> Josh
>
>
> On 9/5/05, Matt Pantana
<matt.pantana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > I have a form that is being submitted via AJAX. There is a checkbox in
> the
> > form that if selected, I want to redirect to a different page
entirely.
> > Right now, the redirect results are still going into the div that the
> AJAX
> > was attempting to update. Is there a way to step out of that and force
a
> > true redirect?
> >
> > --matt
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> >
> >
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails