I didn’t think this would be a problem at all, but basically, I need to pass a string into javascript, and then be able to use the variables that are in that string. Like so
var string = '{heading:"Im looking for"};';
var values = eval(string);
alert(values.heading);
This results in “undefined”, bleek!
Does anyone know what i’m doing wrong here…
Thanks in advance
Bye