This is a migrated thread and some comments may be shown as answers.

JSON datasource returns [object Error] only inside IE9

1 Answer 71 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
T.
Top achievements
Rank 1
T. asked on 13 Sep 2012, 12:21 PM
Hi,

I hava a grid and a datasource which receives data from a webservice.
The XML data I convert serverside to JSON using PHPs json_encode().
If I display these data in a Kendo grid ONly FireFox and Chrome show the data correclty inside the grid.

Internet Explorer 9 (IE 9) shows  [object Error].
This message comes from my datasource:

...
             
            error:  function(e)
                    {
                        alert(e.errorThrown);                      
                    },
 
...

Can somebody tell me why IE9 does not accept these JSON data but other browsers do without any problem?
Is there any way to get more information what causes the error?

Thanks!

1 Answer, 1 is accepted

Sort by
0
T.
Top achievements
Rank 1
answered on 13 Sep 2012, 02:44 PM
Hi,

I found the problem by myself.
Problem was wrong HTTP-Header sending out from Zend-Framework.
The correct Header should be:

'Content-Type', 'application/json; charset=utf-8'

Tags
Data Source
Asked by
T.
Top achievements
Rank 1
Answers by
T.
Top achievements
Rank 1
Share this question
or