-
21 Jul 2012 12:27 PM #1
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
my .htaccess file looks like thisCode:Ext.Ajax.request({ url: 'http://url/', form: 'formid', withCredentials: false, useDefaultXhrHeader: false,
Alternatively if i would like to know how to submit a form via jsonp. Thanks in advanceCode: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"
-
23 Jul 2012 4:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,666
- Vote Rating
- 435
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Jul 2012 5:05 AM #3
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?
-
23 Jul 2012 5:16 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,666
- Vote Rating
- 435
Something like weinre
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Jul 2012 5:33 AM #5
weinre
weinre
Cool thanks, I have stumbled across RemoteJS from Sencha, does it work on Android 2.3.x, is it still supported?


Reply With Quote