Hi there, I'm trying to learn more about the ajax helper and making some experiences with it.
I have a long form (about 40 fields) to a model that has HABTM relationships. The related data are inserted via an ajax call with properly input hidden fields. I get these related data by its IDs. But when the ajax make a request all the entire form is submitted. The whole thing is working but I think it's a bit inefficient. Illustrating with a classic example of tags/posts, the code is something like this: <?php $form->create('MyLongPostForm'); ?> // ... // ...too // ...many // ...many // ...fields // ... <?php echo $form->text('Tag.name'); echo $ajax->submit('add', array( 'url'=> array('action'=> 'someaction') , 'update'=> 'something' )); ?> Again, I'd like to submit only the only needed tag name to add, but all the fields of MyLongForm are submitted. I tryied to put an $ajax->form before the $form->text without success. I'll appreciate any help. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---