1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    42
    Vote Rating
    0
    abtrapp is on a distinguished road

      0  

    Default Ext.Direct

    Ext.Direct


    As far as I can read out from the undocumented sample for Ext.Direct the only thing I have to do to use it is:

    Code:
    Ext.Direct.addProvider(Ext.app.REMOTING_API,{type:'polling', url: 'maintenance/status'});
    Ext.Direct.on('message', function(e){console.log(e.data)});
    From: http://www.extjs.com/deploy/dev/exam...rect/direct.js

    The only thing that I can produce with this code is:
    "provider is undefined" in extjs (if !(provider.events)...)

    So: How do I define the "provider" and why is the sample working without a provider???

    Thank you very much in advance!

    Regards,
    Anton

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,624
    Vote Rating
    434
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    did you also include the api.php file?
    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.

  3. #3
    Sencha User
    Join Date
    Aug 2008
    Posts
    42
    Vote Rating
    0
    abtrapp is on a distinguished road

      0  

    Default Great!

    Great!


    Thank you very much!!!
    Didn't realized that

    Now the only thing left for me to do is: find out how this stuff is working by trial / error or find a tutorial about it (which seems harder after some searching )

    Once again, thanks!