I need to make a category browser that would allow nested categories. Is
there any receipe on that?
Currently, I use the :onchange event from one of the form element to
update the first select (out of 4-5 selects), but I dont know how to
elegantly reset all the child selects if I change the value from the
first.
All the categories are fetched from the DB and I would like a ‘generic’
solution to this. My current solution involves too much coupling between
the Controller and the view and thats a Bad Thing ™.
click on a value in the first column, it fetch the data from the DB
then
populate the second column. Then, when you pick a value from the
second
column, it will update the third.
Crap… .I feel stupid to reply to myself after my previous post but…
I talked too fast! I look at the specs, everything was fine until I
looked at the screenshots.
The finder offered by livetree is more like the file explorer of
windows. The Finder on the mac that I was talking about is the one that
display each ‘level’ in a column. So let say we have 3 columns, when you
click on a value in the first column, it fetch the data from the DB then
populate the second column. Then, when you pick a value from the second
column, it will update the third.
The problem is if at that time I click on the first column, it needs to
clear the thrid column and update the second…
I have a solution in my head to do this but it involves a lot of
javascript and too much coupling between the controller and the view…