Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    11
    Answers
    1
    Vote Rating
    0
    ajithct is on a distinguished road

      0  

    Default Answered: How to Get json values from cross domain in sencha touch2

    Answered: How to Get json values from cross domain in sencha touch2


    HI

    Can anyone tell how to Get json values from cross domain in sencha touch2

    TIA

  2. Got solution by converting json file to jsonp format like adding Ext.data.JsonP.callback({....});

    Thanks

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

      0  

    Default


    You can use either "CORS" if you wish to use AJAX APIs or JSONP APIs directly.

    Please provide more information on your issue.

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    497
    Answers
    25
    Vote Rating
    51
    shepsii has a spectacular aura about shepsii has a spectacular aura about shepsii has a spectacular aura about

      0  

    Default


    ... and if the app is being deployed natively, you don't need to worry about this at all, ajax requests will work cross domain fine.
    I blog about Sencha Touch at www.senchatouchdev.com

  5. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    15
    Answers
    1
    Vote Rating
    1
    digitalgerm is on a distinguished road

      1  

    Default


    JSONP + GET method

  6. #5
    Sencha User
    Join Date
    Feb 2013
    Posts
    11
    Answers
    1
    Vote Rating
    0
    ajithct is on a distinguished road

      0  

    Default


    Got solution by converting json file to jsonp format like adding Ext.data.JsonP.callback({....});

    Thanks

  7. #6
    Sencha User
    Join Date
    Oct 2012
    Location
    bangalore
    Posts
    2
    Vote Rating
    0
    sharibabu is on a distinguished road

      0  

    Default Cross domain in sencha touch2

    Cross domain in sencha touch2



    var store =Ext.create('Ext.data.Store',{ model:'User', proxy:{ type:'jsonp', url :'http://domainB.com/users', callbackKey:'theCallbackFunction'}});store.load();
    we have to try it