Re: Update multiple div on one ajax call
You can also use onSuccess:function(){new Ajax.Updater(...)} to call another update from inside the first Ajax.Updater call. Here's an example where a checkbox is clicked to change an invoice status to paid. Its then moved down to the paid table (id="invoices_done") and then the onSuccess calls another update to change the total of all outstanding invoices. ' ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Update multiple div on one ajax call
This should help you http://groups.google.com/group/cake-php/search?group=cake-php&q=multiple+div+ajax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Update multiple div on one ajax call
Can you make me an example of use of the option "with"? Many Thanks Marco On 10 Mag, 13:03, francky06l <[EMAIL PROTECTED]> wrote: > Well you can use the option "with" in ajax call, I know it works with > a Form (or DOM id) of what you want to send. Maybe you can use this if > you have a Form .. > > On May 10, 10:21 am, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > Hi > > > How can i update multiple divs with one call specifing > > their content in the call ? > > > link('Try', > > array('funtionA','functionB'), array('update' => > > array('div_A','div_B'))); ?>- Nascondi testo tra virgolette - > > - Mostra testo tra virgolette - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Update multiple div on one ajax call
Well you can use the option "with" in ajax call, I know it works with a Form (or DOM id) of what you want to send. Maybe you can use this if you have a Form .. On May 10, 10:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > > How can i update multiple divs with one call specifing > their content in the call ? > > link('Try', > array('funtionA','functionB'), array('update' => > array('div_A','div_B'))); ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Update multiple div on one ajax call
Hi How can i update multiple divs with one call specifing their content in the call ? link('Try', array('funtionA','functionB'), array('update' => array('div_A','div_B'))); ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---