AJAX is simple. XForms is simpler.
I came across a short, fun, hype-free summary of AJAX by Daniel Lorch. I thought it would be fun to take a similar look at some of the parts of XForms that declaratively wrap up the same concepts: the Instance DOM (data DOM), Submission (XHR), and Output (presentation without DOM mutation).
Read my article AJAX is Simple; XForms is Simpler.
There's another article to be written about validation using XForms client-side, declarative constructs, but it's off tangent from Daniel's article.
Point 5 of Daniel's article says, "Doing AJAX by hand is certainly possible and helps understanding it, but using a good library makes the whole experience more comfortable."
The shibumiscript approach is to consider XForms a way of expressing intent, and letting AJAX do the work for you.
A challenge: Can XForms do better? Yes, by better integration with XHTML (single namespace), and by authoring conveniences that reduce typing and add defaults. Look for more of these in upcoming "XForms Simplification" from XForms 1.2 from the W3C.


0 Comments:
Post a Comment
<< Home