Another Dynamic Menu question [NOT REQUIRED]
Posted: Thu Sep 02, 2010 4:56 pm
Hiya,
I know this has been discussed many times before and I've seen a few "solutions" but nothing I can really follow (mainly due to my lack of JS knowledge and also differences in solutions over the years)..I'm hoping someone can help..
I have a table called "BodyParts". Within it contains BodyPartID and BodyPart.
I have a second table called "Exercises". Within it contains ExerciseID, Exercise and BodyPart
What I'd like is when someone selects the BodyPart from the dropdown (let's say "Chest"), all subsequent dropdowns for that record (of which there could be up to 6) are updated with only "Chest" related Exercises.
I know it'll require some JS (which is where I'll struggle) and possibly the use of the widget:atts:onchange function in fields.ini (this isn't mentioned in the wiki article here - http://xataface.com/wiki/index.php?-tab ... e_id=%3D90) but I'd just like some guidance if anyone can help.
If that's not difficult enough, there might be 1 dropdown menu that would need to be excluded from this functionality (but I know I might be asking too much there). If anyone can help with the above, that'd be fantastic!
Thanks in advance.
Paul
I know this has been discussed many times before and I've seen a few "solutions" but nothing I can really follow (mainly due to my lack of JS knowledge and also differences in solutions over the years)..I'm hoping someone can help..
I have a table called "BodyParts". Within it contains BodyPartID and BodyPart.
I have a second table called "Exercises". Within it contains ExerciseID, Exercise and BodyPart
What I'd like is when someone selects the BodyPart from the dropdown (let's say "Chest"), all subsequent dropdowns for that record (of which there could be up to 6) are updated with only "Chest" related Exercises.
I know it'll require some JS (which is where I'll struggle) and possibly the use of the widget:atts:onchange function in fields.ini (this isn't mentioned in the wiki article here - http://xataface.com/wiki/index.php?-tab ... e_id=%3D90) but I'd just like some guidance if anyone can help.
If that's not difficult enough, there might be 1 dropdown menu that would need to be excluded from this functionality (but I know I might be asking too much there). If anyone can help with the above, that'd be fantastic!
Thanks in advance.
Paul