Hello all,
So here is what I am trying to do:
1.My variable named data_1 is set.
var data_1 = {
"y_legend": {
"text": "# of Patients",
"style": "{font-size: 20px; color: #778877}"
},
"x_legend": {
"text": "AUG 09 - OCT 09",
"style": "{font-size: 20px; color: #778877}"
}
};
In a drop down a user selects an option with the value of 'data_1' that calls load('data_1').
function load(data) { tmp = findSWF("my_chart"); x = tmp.load( JSON.stringify(data) ); }
My Problem: I'm selecting an option with the value 'data_1' and not the variable itself. So in my function load('data_1'), when I alert(data) I get data = 'data_1'.
So how do i get the contents of my variable data_1 in my load function by passing only the name of the string?
Thanks!