Re: ajax Update in a page with 2 divs

2013-03-22 Thread Anna P
Hello. When I have to update two (or more) different elements, but both of them with different content, I simply only set 'update' in a form on a element where I have to display more complex data (for example from database), and then I update second div using JavaScript (in a view of updated el

Re: ajax Update in a page with 2 divs

2013-03-20 Thread Chris
thanks Fabio,... I'll try,... On Wednesday, March 20, 2013 5:20:36 AM UTC-7, Fábio Vanderlei wrote: > > I would try : > submit('Add', array('url'=> > array('controller'=>'bookmarks', 'action'=>'add'), *'update' =>array( > 'updateBookmark1','updateBookmark2' )*, 'complete' => > 'javascript:rese

Re: ajax Update in a page with 2 divs

2013-03-20 Thread Fábio Vanderlei
I would try : submit('Add', array('url'=> array('controller'=>'bookmarks', 'action'=>'add'), *'update' =>array( 'updateBookmark1','updateBookmark2' )*, 'complete' => 'javascript:resetBookmarkForm();' )); ?> Em quarta-feira, 20 de março de 2013 07h12min52s UTC-3, Chris escreveu: > > > hi guys,..

ajax Update in a page with 2 divs

2013-03-20 Thread Chris
hi guys,... how you all doing, can anyone help please,... I got an ajax form that submits and add bookmarks to a site and it's working,... Is it possible to Update in a page with 2 divs ? and how can I do that in a form: , 'update' => 'updateBookmark1',...? and where should I insert 'upd