tree-like structure of dynamic select boxes

A place for users and developers of the Xataface to discuss and receive support.

tree-like structure of dynamic select boxes

Postby kevinwen » Mon Jan 25, 2010 5:26 pm

The following link(http://xataface.com/wiki/Dynamic_select_boxes) shows how to create 2 select boxes, one of which is dependent on the other. But what if the dependent box has multiple parents, just like how xataface filter works. I need to implement this feature on edit form. The following is the example:

visitors --> in a category --> in a subcategory
visitors --> in a country --> in a state/province --> in a city

I want the visitor drop-down box shows those entries that only match criteria selected from category/subcategory/country/state/city in a table. Does anybody know it? Thanks.
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm

Re: tree-like structure of dynamic select boxes

Postby shannah » Mon Jan 25, 2010 7:56 pm

You could still do this all in javascript. You just need to store the information that is required for you to perform your filter. Then in the onchange handler for each filter, you just loop through the options in the visitors select list and compare to your filters. I strongly recommend using jquery for this sort of thing.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 17 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved