Hi there, I have an form that works well. But as I've created a component that write to a PDF file, the submit request could take a long time to complete. So, I'd like to convert the normal submit to an AJAX one.
I can do it using the $ajax->submit and passing the adequate value to the options array. But I think it's not an elegant solution as the $form->create is refering to the main action and I have to make a second reference to the action in the 'url' param of $ajax->submit. So what's the right way of submitting a form with AJAX? I mean without replicate the form action to the ajax url options? And can't I use the $ajax->form normally with a $form->end? 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 [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 -~----------~----~----~----~------~----~------~--~---
