Re: input of one select box into another
Take a look at the dajaxproject. http://www.dajaxproject.com/ That may be what you are looking for. On January 7, 2012 05:40:24 Weldan wrote: > I am looking for same answer. > > Currently this is what i was doing: > > 1. load javascript into form page > 2. for each select box, call ajax to return next select box value > example: > > 1. form loaded, select box 1 has values > 2. user choose values from select box 1, get select box 2 values with > select box 1 chosen value, same on select box 3 > > has anyone did the same? or is there an easy/correct way to do this? > > On 7 January 2012 07:02, inzaghiwrote: > > I have a form with two select boxes. the input of one will be used to > > determine what gets loaded in the other. > > In essence the second select box could have data populated into it > > from > > different models. > > > > 1 how would I do this ? and > > 2.How would I accomplish this without reloading the page ? > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin select boxes
Thanks to both you and Tom. I suspected that I was going to have to use javascript in order to do this. I did find Dojo and Dajax that will hopefully lead me in the direction I need as well. Bjorn On Mon, Jan 31, 2011 at 10:39, Joel Goldstick <joel.goldst...@gmail.com>wrote: > > > On Mon, Jan 31, 2011 at 12:06 PM, Tom Evans <tevans...@googlemail.com>wrote: > >> On Mon, Jan 31, 2011 at 4:51 PM, Bjorn Meyer <bjorn.m.me...@gmail.com> >> wrote: >> > Hi all, I am hoping that someone might be able to point me in the right >> > direction for the following problem. I have been searching for a few >> days now >> > and haven't been able to find a way to accomplish this. I have found >> some >> > solutions that are close, but only work on editing an entry, not on add. >> > I have models for the following: >> > Each have a foreign key to the model above it. >> > Country >> > Prov/State >> > City >> > Region >> > Community >> > Is there a way in the Django admin to filter the values in the select >> boxes >> > based on the selection in the previous select box? eg: I select Canada >> in the >> > country select box, then in the Prov/State select box I am only >> presented with >> > the Provinces. Once that is selected, the City select box only presents >> cities >> > within the Province selected. etc... >> > Is this possible? >> > >> >> A qualified yes; Of course it is possible, but it's not simply a >> question of saying 'Hey django-admin, these fields are related, so do >> AJAX goodness', you would need to write it mostly yourself, including >> a custom form that adds the additional fields (I assume that you would >> only record the low level item, eg 'Community'), adding web service >> calls so you can populate those fields, etc etc. >> >> Cheers >> >> Tom >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> I just ran across this article from a delicious feed: Its a little > tutorial about using Django and ajax to do just what you are asking. > > > http://www.nerdydork.com/dynamic-filtered-drop-down-choice-fields-with-django.html > > > -- > Joel Goldstick > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django Admin select boxes
Hi all, I am hoping that someone might be able to point me in the right direction for the following problem. I have been searching for a few days now and haven't been able to find a way to accomplish this. I have found some solutions that are close, but only work on editing an entry, not on add. I have models for the following: Each have a foreign key to the model above it. Country Prov/State City Region Community Is there a way in the Django admin to filter the values in the select boxes based on the selection in the previous select box? eg: I select Canada in the country select box, then in the Prov/State select box I am only presented with the Provinces. Once that is selected, the City select box only presents cities within the Province selected. etc... Is this possible? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django comments & recaptcha
Hi folks, I am trying to add recaptcha to my comments section. I am currently trying to use MyRecaptcha, but I seem to be missing something to get it going. I think it is the configuration in the URLs file. I am using Django 1.1.1. If anyone has any ideas on how to get this going or if there is something better, please let me know. Thank you Bjorn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.