for now, u jst use the javascript solution...
i didnt understand the overriding thing and it didnt work for me...
thanx guyz
On Sep 14, 2:26 pm, Martin Westin martin.westin...@gmail.com wrote:
You might want to looks at some of these suggested solutions.
You might want to looks at some of these suggested solutions.
http://bakery.cakephp.org/articles/view/redirects-with-ajax
Pick the one that works the best for you.
/Martin
On Sep 11, 6:03 am, learning_cake_php lunaro...@gmail.com wrote:
so theres no way on switching to normal redirect from
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{
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
so theres no way on switching to normal redirect from ajax redirect?
as what i have understood on your suggestion,correct me if im wrong,
is to have a view containing a plain javascript redirect?
how about this one:
What I have done though is to have that logic in javascript. Cake
simply returns
At security level high CakePHP creates a new session id for each
request (often enough anyway). This behaviour might be causing you
problems using Ajax. The intermittent aspect of the problem is because
ajax will be fine as long as you don't make use of the A too much.
Cake will only allow one
i dont think im the only one asked this question but i just wanted to
be sure
that solutions i found in the net is correct and secure..
my problem is when i do an ajax call sometimes my session is lost
sometimes its not..say for instance, i have a textbox where every time
the value is change the