For that one there is no one-click simple trick.

I guess you could return an ajax html snippet containing a javascript
that trigger a redirect... unless it gets captured in some security
check.

What I have done though is to have that logic in javascript. Cake
simply returns success or error on the request and then my javascript
knows whether to redirect or not.

/Martin


On Sep 10, 1:06 pm, learning_cake_php <[email protected]> wrote:
> ah ic..well thanx so much for that information..well i guess i have to
> lower my
> security level for this matter...one more thing, how can i redirect an
> entire page
> when im submitting a form using ajax? say for instance
> if($this->Model->save(){
> $this->redirect('theWholePageToSomeWhereElse');}else{
>
> $this->redirect('toPreviousViewUsingAjax');
>
> }
>
> how can i do that?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to