Results 1 to 2 of 2

Thread: Handling ajax requests on native android apps.

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    27
    Answers
    2
    Vote Rating
    0
      0  

    Default Unanswered: Handling ajax requests on native android apps.

    I have packaged a Sencha Touch 2 app with PhoneGap for Android. I can't get the ajax requests to work on my native application. When I handle the request through the browser on http://mydomain.com/mysenchaapp/android/assets/www/ it works fine, however, when I run my app through the emulator as a native app my request fails. I think it would be helpful if I could get fiddler to work on handling native apps' request as well, but I haven't been able to figure that out either. Any help is appreciated.

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      0  

    Default

    Hi!

    For native applications, you may try with Ext.data.JsonP.
    This class is used to create JsonP requests, allows for making requests for data cross domain. It is used to request data from a server in a different domain, something prohibited by typical web browsers because of the same origin policy.

    For More Info, check this:-
    http://docs.sencha.com/touch/2-0/#!/...method-request
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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
  •