11 Nov 2012 8:24 PM #1
Answered: Ext.Direct and Native applications
Can "Ext.Direct" be use on a Sencha Touch App running natively? Or only "JsonP" can be used?
Ext.Direct is basically Ajax requests. If the remote server supports CORS then it technically should work.
13 Nov 2012 11:26 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Ext.Direct is basically Ajax requests. If the remote server supports CORS then it technically should work.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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.
13 Nov 2012 9:03 PM #3
This in my .htaccess did the trick :-) Thank you
I've been using Ext.Direct for this app http://gaiaehr.org/demo/ (user: admin | password: pass) and with Ext.Direct now in Touch, a mobile version will be every easy to build. :-)
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin * Header set Access-Control-Allow-Headers "origin, x-requested-with, content-type" Header set Access-Control-Allow-Methods "POST, GET, OPTIONS" </IfModule>