Re: Ajax reload of an element from a call within the element itself

2009-12-22 Thread Laurent Kretz
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,

Re: Ajax reload of an element from a call within the element itself

2009-12-19 Thread Jeff Deroshia
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

Ajax reload of an element from a call within the element itself

2009-12-19 Thread Laurent Kretz
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

Re: Ajax reload of an element.

2009-03-16 Thread brian
$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

Re: Ajax reload of an element.

2009-03-16 Thread byqsri
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:

RE: Ajax reload of an element.

2009-03-15 Thread Dave Maharaj :: WidePixels.com
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

Re: Ajax reload of an element.

2009-03-15 Thread byqsri
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

Re: Ajax reload of an element.

2009-03-15 Thread dr. Hannibal Lecter
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

Ajax reload of an element.

2009-03-15 Thread marco.rizze...@gmail.com
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