1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    San Juan, PR
    Posts
    82
    Vote Rating
    5
    vela1606 is on a distinguished road

      1  

    Default Answered: Ext.Direct and Native applications

    Answered: Ext.Direct and Native applications


    Can "Ext.Direct" be use on a Sencha Touch App running natively? Or only "JsonP" can be used?
    |:| GaiaEHR |:| A Open Source Software for Electronic Health Records - Lead Developer

  2. Ext.Direct is basically Ajax requests. If the remote server supports CORS then it technically should work.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,207
    Answers
    3517
    Vote Rating
    856
    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

      1  

    Default


    Ext.Direct is basically Ajax requests. If the remote server supports CORS then it technically should work.
    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.

  4. #3
    Sencha User
    Join Date
    Jan 2011
    Location
    San Juan, PR
    Posts
    82
    Vote Rating
    5
    vela1606 is on a distinguished road

      1  

    Default


    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. :-)

    Code:
    <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>
    |:| GaiaEHR |:| A Open Source Software for Electronic Health Records - Lead Developer

Thread Participants: 1