开发者

Ajax problem with sencha touch in android 2.3.3

I am trying to retrieve the interaction data using Ajax in the sencha touch framework.

            I am sending Ajax request like

            Ext.Ajax.request  
            ( 
               { 
                  url      : 'xxx../xxx.json', 
                  method   : 'GET', 
                  params   :  
                   { 
                     startDate  : 'xxx', 
                     endDate    : 'xxx'   
                   } 
                  success: function(response,opts)
                   { 
                   var response = Ext.decode(response.responseText);                   
                   } 
                } 
            ) 
         This works good in Chrome and retrieving the data.But when I tried in Andriod 2.3.3 I am getting the following error : "SyntaxError : Unable to parse JSON string"

            The error occurs in the sencha touch framework on line 14583,which is

            Ext.util.JSON =
             {
                encode : function(o) 
                   {
                      return JSON.stringify(o);
                   },
                decode : function(s) 
                   {
                      return JSON.parse(s);
                   }
              };
开发者_如何学Go
      Can anyone help how to resolve this?

      Thanks in advance.

Thanks &Regards

Gayathri B S


Why don't you use Ext.data.Store? Also try setting the params as query string and see what the response.responseText is, i.e. console.log(response.responseText);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜