I'll try to explain myself... not easy ;)
How do you face the problem of handling a POST request with symfony2
(might be applicable to symfony 1) and generating a XHR response?
fooForm --------------> CreteActionController --------> Response
(need to update only part of the page, not render all)
_POST (Controller takes care,
validation, storing data, etc...)
(request->isXmlHttpRequest()) within a controller does not work as
submitting action has been generated with _POST not XHR, and I would
like to avoid the submit action from JQuery .$
("form#fooorm").submit .. as it skips validation and other syfmony
forms facilities.
You can find a gist of what I am intending to do here:
https://gist.github.com/884828
Regards,
Carlos.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en