Nate
have you the controller's method going with this ? I'm probably thinking 
too quickly but I don't
get how this method will return 2 things at once.

nate wrote:
> Hey y'all,
>
> Just wanted to make a follow-up comment about something that happened
> this release.  Actually, it's more of a confession: We did it again.
> We started adding new features.
>
> One thing people kept asking about was how to update multiple page
> elements in a single Ajax request, and up till now, we had no way of
> doing that.  Not only that, but doing Ajax updates now takes less view
> code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ).  Take a
> look:
>
> // test.thtml
> <code>
> <?=$ajax->link('Update 2 Div\'s', '/controller/test', array('update' =>
> array('first', 'second'))); ?>
>
> <?=$ajax->div('first'); ?>
>       This is the first div, it has the current time:
>       <?=strtotime('now'); ?>
> <?=$ajax->divEnd('first'); ?>
>
> <?=$ajax->div('second'); ?>
>       This is the second div, it shows server variables:
>       <? pr($_SERVER); ?>
> <?=$ajax->divEnd('second'); ?>
> </code>
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to