dynamically associate radio buttons with droplists

Che M cmpython at gmail.com
Wed Jun 24 19:03:00 EDT 2009

On Jun 24, 10:37 am, a... at pythoncraft.com (Aahz) wrote:
> In article <16b382ee-a3ae-46ee-88fd-d87fc40d2... at g20g2000vba.googlegroups.com>,
> Shoryuken  <sakradevanamin... at gmail.com> wrote:
> >On Jun 21, 8:43=A0pm, a... at pythoncraft.com (Aahz) wrote:
> >> In article <f28e2bcc-3b51-4d43-81e7-9a7810040... at o36g2000vbi.googlegroups=
> >.com>,LeoBrugud=A0<sakradevanamin... at gmail.com> wrote:
> >>>Not being very familiar with python, nor with cgi/http, =A0I 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.
> >> Are you trying to do this without requiring the user to click the submit
> >> button? =A0If yes, you need to learn JavaScript (although I think there a=
> >re
> >> web frameworks that will auto-generate the JavaScript, you need to know
> >> JavaScript in order to do debugging).
> >Thanks, and yes I want to do it without the submit button
> >So python alone cannot do this?
> Correct; you need to have code run in the browser, and few browsers
> support Python.

Might want to consider Pyjamas, the python-to-javascript Compiler and
a Web Widget set:

More information about the Python-list mailing list