Page 1 of 1

Dynamically generate tabs

PostPosted: Thu Sep 02, 2010 3:27 pm
by cantlep
Hiya,

Is there a way to dynamically generate tab names? Currently I have an app that logs workout related stuff. I've created 5 tabs currently named "Exercise1-5". Within those tabs, a user can select (from a dropdown) an exercise (it implies one exercise per tab) and then log the wieght and repetitions, etc. This is cool...however, what would be cooler is..on the "__main__" page, a user can select a body part/muscle group and then be presented with some tickboxes containing the related exercises...then based on what they select, when they click next, have the tabs auto generated on the fly with the names of those exercises and the content of the tabs just requiring "weight and reps".

I guess it'll be some JS/Ajax magic that's miles out of my league..but on the off chance it's possible/someone else has done something similar...I thought I'd ask :-)

Cheers

Paul