Hi everyone,
I used CAKE 1.8 , Uniform Server 3.3, WIN2003, firefox 1.5 and ie 7.0.
I try the fuction about $ajax->link.
I can make the $ajax->link to update single DIv's works perfect either
in FF or IE.
But when I try $ajax->div and $ajax->divEnd, there is no responding at
all.
Can anyone help me to figure it out?
Thanks.
P.S. my code:
tasks_controller.php
function hello()
{
$this -> layout = 'ajax';
}
views/tasks/index.thtml
<h3>Hello</h3>
<?= $ajax->link('Update 2 Divs', '/tasks/hello',
array('update' => array( ' first ' ,' second ' ) ) );?>
<?=$ajax->div('first'); ?>
<h1>Main Head Updated</h1>
<?=$ajax->divEnd('first'); ?>
<?=$ajax->div('second'); ?>
<h2>Sub head updated</h2>
<?=$ajax->divEnd('second'); ?>
views/tasks/hello.thtml
<center> HEllo</center>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---