Summary: forms for MVC, simple web applications, bad for component-oriented, rich web applications.
Reason: forms cannot embed other forms: a big limitation for component-oriented architecture.
More: For typical MVC applications, the forms are excellent. In rich, complex web applications that use a lot of javascript and AJAX and with many components here and there, I don't like forms. Reason: forms cannot embed other forms. Then, if each component displays a shape, the components cannot insert each other. Very sorry. Changing all forms to divs, I can nest them, and whenever I want to capture all the parameters to pass them to ajax, I just do (with jQuery):
.
$ ("# id_of_my_div") find ("[name]") serialization () ;.
(or some other filtering)
instead:
$ ("# id_of_my_form") serialization () ;.
Although, for sentimental and semantic reasons, I continue to call my divs something_form when they act as forms.
Alex Jurado - Bitendian Dec 18 '13 at 17:06 2013-12-18 17:06
source share