dynamically associate radio buttons with droplists

Aahz aahz at pythoncraft.com
Mon Jun 22 01:43:49 CEST 2009


In article <f28e2bcc-3b51-4d43-81e7-9a7810040496 at o36g2000vbi.googlegroups.com>,
Leo Brugud  <sakradevanamindra at gmail.com> wrote:
>
>Not being very familiar with python, nor with cgi/http,  I intend to
>have 3 of buttons in a webpage, each of them is associate with a file
>(so I have 3 files, too)
>
>What I would like to have is, when users choose a button, the droplist
>update automatically to load the contents of the associated file.
>
>Can someone educate me the approach of this?

Are you trying to do this without requiring the user to click the submit
button?  If yes, you need to learn JavaScript (although I think there are
web frameworks that will auto-generate the JavaScript, you need to know
JavaScript in order to do debugging).
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha



More information about the Python-list mailing list