dynamically associate radio buttons with droplists

Aahz aahz at pythoncraft.com
Wed Jun 24 16:37:23 CEST 2009


In article <16b382ee-a3ae-46ee-88fd-d87fc40d208d at g20g2000vba.googlegroups.com>,
Shoryuken  <sakradevanamindra 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.
-- 
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