On 5/26/06, nate <
[EMAIL PROTECTED]> 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
-~----------~----~----~----~------~----~------~--~---
- Re: CakePHP 1.1.2.2955 Release 100rk
- Re: CakePHP 1.1.2.2955 Release nate
- Re: CakePHP 1.1.2.2955 Release 100rk
- Re: CakePHP 1.1.2.2955 Release AD7six
- Re: CakePHP 1.1.2.2955 Releas... nate
- Re: CakePHP 1.1.2.2955 R... AD7six
- Re: CakePHP 1.1.2.29... [EMAIL PROTECTED]
- Re: CakePHP 1.1.2.2955 Release Samuel DeVore
- Re: CakePHP 1.1.2.2955 Release Olivier percebois-Garve
- Re: CakePHP 1.1.2.2955 Release Marcelo de Moraes Serpa
- Re: CakePHP 1.1.2.2955 Release Larry E. Masters aka PhpNut
- Re: CakePHP 1.1.2.2955 Release Olivier percebois-Garve
- Re: CakePHP 1.1.2.2955 Release nate
- Re: CakePHP 1.1.2.2955 Release [EMAIL PROTECTED]
- Re: CakePHP 1.1.2.2955 Releas... Marcelo de Moraes Serpa
