rgarimella
asked on
Spliting a String
Hi Folks
I have the following string
How do I get the value of 06_01 which is 20
I need the value of 06_01 (which in this case is 20)
Thanks
RG
I have the following string
var data = "{"CTS":"0,51,52","lastTopic":53,"questions_answered":["3","2","4","1","9"],"scoreArray":[],"06_01":20}"
How do I get the value of 06_01 which is 20
I need the value of 06_01 (which in this case is 20)
Thanks
RG
test page : http://jsfiddle.net/tBnjf/2/
ASKER
How would I code for older browsers especially IE7 ?
It works for the rest
It works for the rest
read the code in my first post, line 4,5,6...
ASKER
Sorry, I read the above lines for older browser. Confusion was in the json_parse.js, the sample code was like this
your code was
Also do I have to detect older browsers ?
myData = json_parse(text, function (key, value) {..
your code was
var json = JSON.parse(data);
Also do I have to detect older browsers ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window