<?php echo $ajax->form('/comments/add', 'post', array( 'url' => '/
comments/add', 'update' => 'feed', 'indicator' => 'commentSaved'));?>
I tried many option to update more div...
for example putting 'update' =>array.....
But is it possible?
How can I to say to cake to create two update div?
In one, I need show the comments...
And in the other div I need to show the message "saved" or "error";
I can use also javascript:
function update2divs(parameters) {
ajaxupdate('div1','url');
ajaxupdate('div2','url2');
}
But How can I call this function, using $ajax->form?
Another question, how can I move the focus on a div...I need to show
the comment when the user has finished posting the comment.
Very thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---