[Web-SIG] html dom like javascript ?
Jean-Paul Calderone
exarkun at divmod.com
Thu Aug 17 17:20:02 CEST 2006
On Thu, 17 Aug 2006 10:10:47 -0400, seth <test at brightphoton.com> wrote:
>Is there a python library which is analogous to javascript for creating
>html/xhtml documents? e.g.:
>
> hidden = document.createElement("input")
> hidden.setAttribute("type", "hidden")
> hidden.setAttribute("name", "active_flag_hidden_" + ctl)
> if( dirtyArray[ctl].checked == true) {
> hidden.setAttribute("value", 'N')
> } else {
> hidden.setAttribute("value", 'Y')
> }
> document.forms['listForm'].appendChild(hidden)
At least fifty. The DOM API is heavily standardized with hundreds of
implementations in dozens of languages.
http://python.org/doc/lib/module-xml.dom.html
Jean-Paul
More information about the Web-SIG
mailing list