I have the following code, and it does not work in IE8 (works perfect in Firefox):
response = eval('({"success":true,"statuses":[{"title":"Unknown","code":"UNKNOWN","cssClass":"sys_unknown","id":1}]})');
for (var i in response.statuses) {
status = response.statuses[i];
if (status.id != undefined) {
alert('ID = ' + status.id);
}
}
Can someone tell what’s wrong?
Thanks.
Try this: