How to update two divs with $ajax->link?

2009-02-22 Thread simon...@gmail.com
Hi, I have two divs 1- menucardapio 2- cardapioclique I'm using this code to update the div menucardapio: link('Monte', '/monte', array('update' => 'menucardapio') ); ?> div('menucardapio'); ?> ... divEnd('menucardapio'); ?> It works for one div, but not two. What I need to do is to

Re: How to update two divs with $ajax->link ??

2008-10-09 Thread qwanta
I am not an authority on this, but I had a similar problem that I had to solve. Basically, it helps to understand that an ajax call gets a simple text string back from the server. This text string is generated by the controller function specified in your ajax call. So really what you want to do i

Re: How to update two divs with $ajax->link ??

2008-10-09 Thread Anna P
Hi again! I tried this way: link('Frame product', '/products/frameimage/'. $p['Product']['id'], array('update' => array('p-image','p-link')); ?> so as the second argument I gave link. But the problem is that I want to update two divs with two different things (so I want to call two functions (two

Re: How to update two divs with $ajax->link ??

2008-10-09 Thread Siegfried Hirsch
you can just use it like this: $ajax->link("Delete this post", array("update" => array("div1", "div2"), "url" => "delete/{$postid->id}")); On Thu, Oct 9, 2008 at 10:31 AM, Anna P <[EMAIL PROTECTED]> wrote: > > Hi! > I have a problem with updating divs with ajax component. I use $ajax- >>link to

How to update two divs with $ajax->link ??

2008-10-09 Thread Anna P
Hi! I have a problem with updating divs with ajax component. I use $ajax- >link to update one div which holds picture thumbnail and link to its original size and I have to update another div with just link to the picture. How can I update two divs with one $ajax->link ? Cheers! --~--~-~--~