Re: [BangPypers] two dropdowns dependents on each other

2011-08-16 Thread Kenneth Gonsalves
On Tue, 2011-08-16 at 15:45 +0530, Amit Sethi wrote: > > without ajax: > > > > 1. override __init__ on your modelform, pass the value of the first > > dropdown to __init__ and populate the second dropdown depending on > that > > value. If the value is None, the second dropdown will not be > populat

Re: [BangPypers] two dropdowns dependents on each other

2011-08-16 Thread Amit Sethi
[..] > without ajax: > > 1. override __init__ on your modelform, pass the value of the first > dropdown to __init__ and populate the second dropdown depending on that > value. If the value is None, the second dropdown will not be populated. > > 2. in your template, refresh the page when the value o

Re: [BangPypers] two dropdowns dependents on each other

2011-08-16 Thread Kenneth Gonsalves
On Tue, 2011-08-16 at 05:46 +, Asif Jamadar wrote: > I have two dropdowns one dropdown is dependent on other (Ex. > Country/State dropdowns) > > Now how can I implement this thing in django? > > I'm using modelform concept to display form which having two dropdowns > > Any sugtgestions? wi

Re: [BangPypers] two dropdowns dependents on each other

2011-08-16 Thread Gora Mohanty
On Tue, Aug 16, 2011 at 11:16 AM, Asif Jamadar wrote: > I have two dropdowns one dropdown is dependent on other (Ex. Country/State > dropdowns) > > Now how can I implement this thing in django? [...] This is probably best done with a layer on top of Javascript: I would recommend jQuery. Dependin

Re: [BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Sudheer Satyanarayana
On Tuesday 16 August 2011 11:16 AM, Asif Jamadar wrote: I have two dropdowns one dropdown is dependent on other (Ex. Country/State dropdowns) Now how can I implement this thing in django? I'm using modelform concept to display form which having two dropdowns Any sugtgestions? DOM manipulation

Re: [BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Kenneth Gonsalves
On Tue, 2011-08-16 at 05:50 +, Asif Jamadar wrote: > Can you provide me example using ajax? I do not do ajax - all the samples are proprietary. -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/ma

Re: [BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Asif Jamadar
Can you provide me example using ajax? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.

Re: [BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Kenneth Gonsalves
On Tue, 2011-08-16 at 05:46 +, Asif Jamadar wrote: > I have two dropdowns one dropdown is dependent on other (Ex. > Country/State dropdowns) > > Now how can I implement this thing in django? > > ajax -- regards Kenneth Gonsalves ___ BangPypers m

[BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Asif Jamadar
I have two dropdowns one dropdown is dependent on other (Ex. Country/State dropdowns) Now how can I implement this thing in django? I'm using modelform concept to display form which having two dropdowns Any sugtgestions? ___ BangPypers mailing list Ba