It's up... 

http://www.web2pyslices.com/slice/show/1724/cascading-dropdowns-simplified

I'm not sure if it's using the web2py best practices, and I did write it on 
2.5.1 so I don't know if it would work with the latest version (I assume 
so). In any case, it's the most basic way to do it, and it keeps the 
separation of concerns of MVC in mind. Let me know if you have questions.

Thanks,
Derek

On Wednesday, October 9, 2013 1:11:57 AM UTC-7, Avi A wrote:
>
> Great, thanks. 
>
> On Wednesday, October 9, 2013 3:38:19 AM UTC+3, Derek wrote:
>>
>> I'm working on a new slice, I'll finish it up tomorrow and post it on 
>> web2pyslices. It will do the standard cascaded dropdown lists... car / 
>> make...
>>
>> On Tuesday, October 8, 2013 5:21:41 PM UTC-7, Derek wrote:
>>>
>>> This recipe might help you understand how to make it work...
>>>
>>> http://www.web2pyslices.com/slice/show/1612/ajax-adding-child-records-to-parent
>>>
>>> Use the 'ajax' function to replace your div (that contains the options 
>>> list) and let the server render it.
>>>
>>> My particular 'saveAddresses.html' just has {{=houses}} because all I am 
>>> doing is displaying a dict (web2py makes it look decent). You'd want to 
>>> build your options widget with it instead of just displaying a dict.
>>> On Tuesday, October 8, 2013 6:29:03 AM UTC-7, Avi A wrote:
>>>>
>>>> Still stuck with that...
>>>> Thanks.
>>>>
>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to