1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    PaulKish is on a distinguished road

      0  

    Default CORS Support on Android

    CORS Support on Android


    I have been able to implement CORS request in my touch application, I have also configured the server appropriately, this set-up works on my test environment on Chrome 20.0.1132.57 m, however it seems not to work on android webkit browser 2.3.x though according to this it should work. My config for the ajax request is
    Code:
     Ext.Ajax.request({
                                url: 'http://url/',
                                form: 'formid',
                                withCredentials: false,
                                useDefaultXhrHeader: false,
    my .htaccess file looks like this
    Code:
    Header set Access-Control-Allow-Origin "*"
        Header set Access-Control-Allow-Credentials "false"
        Header set Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
        Header set Access-Control-Allow-Headers "origin, x-requested-with, content-type"
    Alternatively if i would like to know how to submit a form via jsonp. Thanks in advance

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You should try using a remote debugger to see the requests so you can see what's going on.

    The form will always use Ajax request unless you override the form panel via extending.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    PaulKish is on a distinguished road

      0  

    Default Remote Debugger?

    Remote Debugger?


    Very interesting suggestion, I have been able to use the default form submit and it works, had to tweak the server response to return a json with success message, I am curious about a remote debugger any suggestions that I can use?

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Something like weinre
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    PaulKish is on a distinguished road

      0  

    Default weinre

    weinre


    Cool thanks, I have stumbled across RemoteJS from Sencha, does it work on Android 2.3.x, is it still supported?