1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    4
    Vote Rating
    0
    nziehn is on a distinguished road

      0  

    Default Unanswered: Download JSON Data

    Unanswered: Download JSON Data


    Hello,

    I'm not sure whether this is possible with Sencha Touch, but I can't figure it out from the documentation.

    Imagine a simple webservice at url service.com/service

    The answer is
    {
    "hello":"world"
    }

    My application is not running on this domain, therefore I can't use Ajax.

    Using Ext.data.JsonP.request(...) I have the problem that there are parameters added ( the callback etc. ) that the server doesn't support.

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    48
    Answers
    4
    Vote Rating
    3
    shwetapande10 is on a distinguished road

      1  

    Default


    Two ways to tackle your your issue:-
    1) Change your server code to wrap JSON in a callback. Check how JSONP can be implemented in your server side code on internet.
    2) Apply CORS (Cross origin resource sharing) settings on your server, and use your normal ajax APIsto download your JSON

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    4
    Vote Rating
    0
    nziehn is on a distinguished road

      0  

    Default


    Hey,

    thanks for the answer, but I don't have influence on the webservice. So there is no option for downloading this json document?

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar