Results 1 to 6 of 6

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    12
    Answers
    1
    Vote Rating
    0
      0  

    Default 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
      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 Premium Member
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    587
    Answers
    25
    Vote Rating
    88
      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
      1  

    Default

    JSONP + GET method

  6. #5
    Sencha User
    Join Date
    Feb 2013
    Posts
    12
    Answers
    1
    Vote Rating
    0
      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
      0  

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •