i have a page that works great with dependent menus: a select from the first affects the choices in the second. however, now i need to generate the contents of the lists from mysql instead of hard coded.
the courses currently are in a .js file with the syntax where A is the first menu and B is the second.:
var listB = new DynamicOptionList("B","A")
listB.addOptions("1", "Name1, "Value1", ... )
listB.addOptions("2", "Name3, "Value4", ... )
1 and 2 represent the options from the the first list so that if the user selects 1 then Name1 shows up in the second instead of Name3.
I'm sorry I don't understand excatly what you mean, but from what I gather you are currently including (requiring) a .js file right? ie
But now you want to dynamicly create that .js file right? But now you have say
If I'm right a few things you can do: