Hi All,

I am getting there, now I'd like if it's possible to the following :

- update 2 divs, one is containing for example pure php code :

<?= $ajax->div('first'); ?>
<?php echo time('now'); ?>
<?= $ajax->endDiv('first');?

- The second div is

<?=$ajax->div('second'); ?>
<h1>Bonjour</h1>
<?=$ajax->divEnd('second'); ?>


Into the controller (test function)

function test()
{
       render('test');
}

the test.thtml :

<?php e($ajax->div('second')); ?>
   <h2>Merci</h2>
<?php e($ajax->div('second')); ?>

 That works, the second div is updated but not the first one ... I must
miss one of the rule, or something else ... Any idea is welcome
..Actually I want to update the current content (code) of the first div
and update the second div with a part of a view.. Of course on a single
ajax link ..(I use 'update' => array('first', 'second') )

Thanks


--~--~---------~--~----~------------~-------~--~----~
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