You could always try the good old fashioned search feature to the
group.  As this has been discussed at length.  Especially if the only
problem is you don't know how.

BUT, I will advise for you not to use $ajax->form.  First, it uses the
deprecated $html->formTag.  Second, I have had it not work on some
computer configurations especially my friend IE.  Making the form as
normal and using $ajax->submit() has worked much more globally on
browsers for me.  Plus, it doesn't use anything deprecated.

On Oct 5, 4:43 am, "carlosrg" <[EMAIL PROTECTED]> wrote:
> With the ajax->form you are writting an ajax call. You can pass some
> parameters, but the most important are the function "Post/add" and the
> div to update.
>
> In the add action you have to save the new data, to do a new query to
> get the new data and then render an ajax view ($this->layout = 'ajax';)
>
> The ajax view could be like:
>
> <? echo $ajax->div('div_id'); ?>
>   <?php foreach ($posts as $row): ?>
>     <tr>
>         <td><?php echo $row['Post']['title'] ?></td>
>         <td><?php echo $row['Post']['author'] ?></td>
>       <td>
>                 <?php echo $html->link('View','/admin/serial_numbers/view/' .
> $row['SerialNumber']['id'])?>
>                     <?php echo 
> $html->link('Edit','/admin/serial_numbers/edit/' .
> $row['SerialNumber']['id'])?>
>                 <?php echo 
> $html->link('Delete','/admin/serial_numbers/delete/' .
> $row['SerialNumber']['id'])?>
>         </td>
>     </tr>
>   <?php endforeach?>
> <? echo $ajax->divEnd('div_id'); ?>


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