Re: dynamically associate radio buttons with droplists

2009-06-24 Thread Che M
On Jun 24, 10:37 am, a...@pythoncraft.com (Aahz) wrote:
> In article 
> <16b382ee-a3ae-46ee-88fd-d87fc40d2...@g20g2000vba.googlegroups.com>,
>
>
>
> Shoryuken   wrote:
> >On Jun 21, 8:43=A0pm, a...@pythoncraft.com (Aahz) wrote:
> >> In article  >.com>,LeoBrugud=A0 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:
http://code.google.com/p/pyjamas/

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: dynamically associate radio buttons with droplists

2009-06-24 Thread Aahz
In article <16b382ee-a3ae-46ee-88fd-d87fc40d2...@g20g2000vba.googlegroups.com>,
Shoryuken   wrote:
>On Jun 21, 8:43=A0pm, a...@pythoncraft.com (Aahz) wrote:
>> In article .com>,LeoBrugud=A0 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 (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: dynamically associate radio buttons with droplists

2009-06-24 Thread Shoryuken
On Jun 21, 8:43 pm, a...@pythoncraft.com (Aahz) wrote:
> In article 
> ,LeoBrugud 
>  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 (a...@pythoncraft.com)           <*>        http://www.pythoncraft.com/
>
> "as long as we like the same operating system, things are cool." --piranha

Thanks, and yes I want to do it without the submit button

So python alone cannot do this?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: dynamically associate radio buttons with droplists

2009-06-21 Thread Aahz
In article ,
Leo Brugud   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 (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
-- 
http://mail.python.org/mailman/listinfo/python-list


dynamically associate radio buttons with droplists

2009-06-19 Thread Leo Brugud
Hi Folks,

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?

Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list