DOM Builder: Less inhuman
So everyone that have met me, knows that JavaScript is less than pleasant :) but anything that we can do to make it suck less is welcome ... DOM is inhuman ... there's a reason why we write html pages using tags and not DOM ... but anyways, sometimes, especially when you're writing AJAX applications you may need to use some JS and DOM, and the DOM builder may come handy.
var form = html.FORM(
html.DIV(
html.INPUT({type : 'text', name : 'email'}),
html.INPUT({type : 'text', name : 'password'}),
html.INPUT({type : 'submit'}),
)
);
http://www.robgonda.com/blog/trackback.cfm?D3ADE1F7-3048-7431-E4D95020FE880676
There are no comments for this entry.
[Add Comment]