Why don't you just change the view so all of the data fields conditionally display either the form input widget or the read-only div with the data? That seems easier (and much more efficient) than rendering the HTML, parsing the rendered HTML and converting to web2py helpers, replacing the web2py helpers, and then re-rendering the HTML.
Anthony On Sunday, August 14, 2016 at 5:39:29 PM UTC-4, lucas wrote: > > ok, this is what i'm trying to do. i setup a very complex view.html file > that follows a u.s.a. national agency form. thing is damn close to the > actual. but it has rather complex positioning and css file. under the > view, i hardcoded input fields and the end-user can fill those out and > store them to the db. then they can view the actual form in final print > form, in which case i want to search the input and textarea elements of the > DOM and replace them with simple text-only div and allow the css to display > it all properly. > > so how can i retrieve the view, and either send it without modification > (which would contain the inputs and textareas for editting), OR, search and > replace all the inputs and textareas with divs or so and send that as a > final print preview? make sense? > > thanx in advance. lucas > > p.s. this is all somewhat related to what i was experimenting with under: > https://groups.google.com/forum/#!topic/web2py/y69qQYzxMkE > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

