JSON datasource returns [object Error] only inside IE9

2 posts, 0 answers
  1. T.
    T. avatar
    25 posts
    Member since:
    Aug 2012

    Posted 13 Sep 2012 Link to this post

    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!
  2. T.
    T. avatar
    25 posts
    Member since:
    Aug 2012

    Posted 13 Sep 2012 Link to this post

    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'

Back to Top