Arrrghhh.
Ok my whole understanding was wrong, thanks Jeff !
I thought Cake could by himself refresh the element content in the
view.
I didn't get that the function in the controller would only return the
content, and that I had to update/refresh the element with the result.
Thanks !
On Dec 20,
Probably a couple of things. First, I would remove the onclick argument
from $html->link() and return false from the jquery function. Second, I
think you need to supply a callback function in your $.post() call to update
whatever element in the dom you want. Currently, it looks like cake is
rend
Hi all !
I'm trying to reload an element inside a view, and having troubles...
I read the two following similar posts without finding a solution:
http://groups.google.com/group/cake-php/browse_thread/thread/6d69e85b884d4e40/f9fcd5de2c526a52
http://groups.google.com/group/cake-php/browse_thread/thr
$this->render('/elements/posts/view_posts');
>> ...
>>
>> So you need 2 views... The pre-edited view, then the edit view or whatever
>> you need then return back to the original pre-edited view after save with
>> the new info.
>>
>> Hope t
dit view or whatever
> you need then return back to the original pre-edited view after save with
> the new info.
>
> Hope that helps.
>
> -Original Message-
> From: byqsri [mailto:marco.rizze...@gmail.com]
> Sent: March-15-09 3:30 PM
> To: CakePHP
> Subject: Re:
iew, then the edit view or whatever
you need then return back to the original pre-edited view after save with
the new info.
Hope that helps.
-Original Message-
From: byqsri [mailto:marco.rizze...@gmail.com]
Sent: March-15-09 3:30 PM
To: CakePHP
Subject: Re: Ajax reload of an element.
So
er click on a certain button the element is
> > reload .
> > I would make this with ajax.
> > How can I do the ajax reload of an element?
> > Many thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
ser click on a certain button the element is
> reload .
> I would make this with ajax.
> How can I do the ajax reload of an element?
> Many thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake
Hi
I have a page where I have an element (with params) that is a list of
items.
Now I would that when user click on a certain button the element is
reload .
I would make this with ajax.
How can I do the ajax reload of an element?
Many thanks