[Twisted-Python] Retrieving Woven html element IDs

Philippe Lafoucrière lafou at wanadoo.fr
Wed Nov 19 07:43:17 MST 2003


> <html>
> <head>
> <title>test</title>
> <script type="text/javascript">
> function displayErrors() {
>     id = 'errors'
>     document.getElementById(id).innerHTML += '<span>some
>     error</span><br/>'
> }
> </script>
> </head>
> <body>
> <a href="#" onclick="displayErrors()">add to errors</a>
> <div id="errors">
> </div>
> </body>
> </html>


Did you try twisted.web.lmx or twisted.web.microdom ? These packages wil help
you to modify the dom tree. (lmx can modify the rendered tree, and  microdom 
the template tree, if i'm right).





More information about the Twisted-Python mailing list