[symfony-users] Re: Redirect with AJAX

2009-10-09 Thread Gareth McCumskey
We had a similar issue, what you need to do is use javascript to redirect
and "break out" of the ajax div as Deepak mentioned

On Fri, Oct 9, 2009 at 10:55 AM, DEEPAK BHATIA wrote:

> Try using window.location where XmlhttpRequest comes back.
>
>
> On Fri, Oct 9, 2009 at 2:12 PM, HAUSa <
> jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:
>
>>
>> I submit my forms by use of a XmlHttpRequest.
>> Now, if the form is not valid, AJAX puts the error messages in my form
>> div.
>> But, when the form is valid, I want it to redirect it to another page.
>> And that page has to be loaded by a page refresh. But because I am
>> still in the XmlHttpRequest, Symfony loads that page by AJAX as well.
>>
>> How can I in a XmlHttpRequest force to reload a page fully without
>> AJAX?
>>
>>
>
> >
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Redirect with AJAX

2009-10-09 Thread DEEPAK BHATIA
Try using window.location where XmlhttpRequest comes back.

On Fri, Oct 9, 2009 at 2:12 PM, HAUSa <
jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:

>
> I submit my forms by use of a XmlHttpRequest.
> Now, if the form is not valid, AJAX puts the error messages in my form
> div.
> But, when the form is valid, I want it to redirect it to another page.
> And that page has to be loaded by a page refresh. But because I am
> still in the XmlHttpRequest, Symfony loads that page by AJAX as well.
>
> How can I in a XmlHttpRequest force to reload a page fully without
> AJAX?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---