There's no way to controller the reload of the current page or a only a part
from the controller. You should send an special reponse to the javascript
(ie:a simple "reload" string could work), and at the client side do
something like document.location="youurl"

Regards,

Pablo Viojo
[email protected] | http://pviojo.net

http://twitter.com/tiopaul (@tiopaul) | LinkedIn profile:
http://cl.linkedin.com/in/pviojo

¿Que necesitas?
http://www.needish.com


On Fri, Mar 26, 2010 at 12:09 PM, Brenda <[email protected]> wrote:

> I'm using AJAX to update part of a page. On occasion, however, the
> user may make a change that necessitates reloading the entire page,
> not just the elements that are used with the AJAX call.
>
> If I do a redirect in the controller, it reloads the entire page into
> the ajax element. Is there a way in the controller to either force a
> reload of the entire page, or to send an AJAX response back that would
> do so?
>
> Thank you very much for your help.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
> To unsubscribe from this group, send email to cake-php+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to