Some slow progress at the Console Development Center.
I have implemented the function which saves the multiple track data for A/B sides and tracks 1-12 on each side. I have just one nagging technical problem at this stage, and Aaron is still not ready to work on the project (although I expect he will be ready very soon).
Maybe in the meantime one of our readers / members knows the answer, which I can not find. If you use the link below, you will see that you can change the A/B side in the blue "Tracks" section of the console.
http://www.g45central.com/Gtest/nutest8.html
Also if you set the Format to "EP" or "LP", you can change the Track to any value between 1-12. Therefore there are 24 possible tracks per LP or EP.
If you enter some fake data into a few of the A/B 1-12 tracks, you will see that all the data is saved and re-appears when you change from track to track. You can see all the checkboxes and text fields remember all the settings entered for each track. However, the drop down menus are not remembered (actually they are remembered but not displayed). That's the problem. Whatever I do in the coding, the drop-downs will not change when you change tracks or sides. That makes it impossible to use the console, because you can not see the effects of your drop-down menu selections, as you change from track to track.
The strange white button at the bottom is just for test purposes. It prepares the data arrays for the next stage (php).
Here is the Javascript I'm using. It works for text fields and checkboxes, but not for drop-downs ("select-one" elements). If anyone knows the answer, that would be fantastic! The entire Javascript coding is available here:
http://www.g45central.com/Gtest/mtjs.js
The faulty part is in the arrayrefresh() function...
//part that won't work follows...
if (elem.type=="checkbox")
{if (selside==0)
{elem.checked=eval(vala);}
else
{elem.checked=eval(valb);}
}
if (elem.type=="text")
{if (selside==0)
{elem.value=vala;}
else
{elem.value=valb;}
}
if (elem.type=="select-one")
{
if (selside==0)
{elem.options[elem.selectedIndex].value=vala;}
else
{elem.options[elem.selectedIndex].value=valb;}
}
//works for text elements and checkboxes but doesn't work for select-one elements?!?
// elem.value=vala doesn't work for select-one elements either (already tried that) ...