Can you post your script so I can see what, where, and how you're trying to display the information?
As for switching via a button, I would just have the button execute a simple script. Something like this:
Code:
//At the initialization of you script create this global variable
boolean bButtonSwitch = 0;
//Call this function at the initialization of your script after the creation and initialization of the bButtonSwitch variable
void DisplayData () {
if (bButtonSwitch) {
// Enter your first display code here
}
else {
// Enter your second display code here
}
}
//Call This function from the click of the button
void SwitchButtonValue () {
bButtonSwitch = !bButtonSwitch;
DisplayData();
}
I would probably also call separate functions in the DisplayData function, one for each of the display options. I would imagine you are using some sort of display box/area to show the information? You may have to clear the information in that display box and write the new data into it when the 2 data functions are called. The only "web" programming I've really done was php, but I used to do a lot of game scripting/programming that was very similar to php. Its all really very similar in the object oriented languages.