tbarbedo
01-30-2009, 07:13 PM
I am returning the following JSON data from a PHP Script:
{"box_num":"1","room_num":"305","0":{"file_num":"ABC123DF","room":"305","box":"ZGB123456","name":"Gary
Nicholas","entered_on":"01\/30\/09 11:01 AM"},"1":{"file_num":"MYFILE2","room":"305","box":"ZGB123456"
,"name":"Thiago Barbedo","entered_on":"01\/30\/09 11:01 AM"}}
I am then parsing this data in JavaScript with eval....
var objResponse = eval("(" + data + ")");
When this processes, I get an 'invalid label' error in Firebug but the results still return and I can access the data with no problems. However, I would like to remove this error from my code.
Can someone please guide me in the right direction? I have been looking for a solution for the past hour and all of the posts that correspond to this error suggest missing parens in the eval statement, however this is not the problem here....
Thanks in advance..
{"box_num":"1","room_num":"305","0":{"file_num":"ABC123DF","room":"305","box":"ZGB123456","name":"Gary
Nicholas","entered_on":"01\/30\/09 11:01 AM"},"1":{"file_num":"MYFILE2","room":"305","box":"ZGB123456"
,"name":"Thiago Barbedo","entered_on":"01\/30\/09 11:01 AM"}}
I am then parsing this data in JavaScript with eval....
var objResponse = eval("(" + data + ")");
When this processes, I get an 'invalid label' error in Firebug but the results still return and I can access the data with no problems. However, I would like to remove this error from my code.
Can someone please guide me in the right direction? I have been looking for a solution for the past hour and all of the posts that correspond to this error suggest missing parens in the eval statement, however this is not the problem here....
Thanks in advance..