how to put form and display its result(data from database) on the same window?
Tim Roberts
timr at probo.com
Sat Dec 10 03:11:25 EST 2005
Peter Hansen <peter at engcorp.com> wrote:
>lli at sos.state.tx.us wrote:
>> I have designed a web application. In its one window I put a form. User
>> can click submit button of this form to run a pathon script to get data
>> from database. Then User get a new window which display the result. Now
>> I want to put the form and display data on the same window. How I can
>> do this?
>
>The most modern approach to this, and one which appears to be evolving
>into a defacto standard, is AJAX (see http://en.wikipedia.org/wiki/AJAX
>and others).
>
>It's a non-trivial solution to your problem, however, at least in terms
>of the learning curve involved.
It's also a serious case of overkill for the rather simple problem he
presented. All he needs is one function to create the form, and one
function to create the results, and do:
def PresentTable():
PrintTheForm()
if i_have_received_data:
PrintTheResultTable()
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list