Re: Accesing AJAX Form Post data
It's making the call, but the form data doesn't seem to be getting to the controller. Have you tried using FF/FireBug to examine the Ajax call being made, and the response you're getting back? Wood On Feb 9, 6:45 am, Wey [EMAIL PROTECTED] wrote: Here's the relevant code: ?php echo $html-formTag('/ShoppingCarts/show','post'); /* ... form fields ... */ echo $ajax-submit('Update Quantity', array('url' = '/ShoppingCarts/ update_quantity', 'complete' = 'contents')); ? /form --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Accesing AJAX Form Post data
I think I fixed the problem. I had put the form tags WITHIN a table, when i moved them outside, everything worked. On 9 Feb, 10:59, the_woodsman [EMAIL PROTECTED] wrote: It's making the call, but the form data doesn't seem to be getting to the controller. Have you tried using FF/FireBug to examine the Ajax call being made, and the response you're getting back? Wood On Feb 9, 6:45 am, Wey [EMAIL PROTECTED] wrote: Here's the relevant code: ?php echo $html-formTag('/ShoppingCarts/show','post'); /* ... form fields ... */ echo $ajax-submit('Update Quantity', array('url' = '/ShoppingCarts/ update_quantity', 'complete' = 'contents')); ? /form --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Accesing AJAX Form Post data
Hi everyone, I just started working with CakePHP about a month ago. I'm currently trying to get a From submission to work through AJAX. It's making the call, but the form data doesn't seem to be getting to the controller. I'm using the $ajax-submit() to do the submission. With a regular HTML submit, it works. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Accesing AJAX Form Post data
Here's the relevant code: ?php echo $html-formTag('/ShoppingCarts/show','post'); /* ... form fields ... */ echo $ajax-submit('Update Quantity', array('url' = '/ShoppingCarts/ update_quantity', 'complete' = 'contents')); ? /form --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---