1. #1
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,083
    Vote Rating
    44
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default Some Questions

    Some Questions


    I'm still trying to get my head around why Ext.direct would ever return a textarea?

    What's the rationale behind this with Ext.direct?
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint

  2. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    Mainz
    Posts
    241
    Vote Rating
    1
    crp_spaeth is on a distinguished road

      0  

    Default


    A form can get submitted as well as a normal Direct action.
    Since a Form may contains a file to upload to a server and this cant be done via normal xhr a Iframe- bypass is used to simulate an xhr request.

    Since an Iframe runs through the parsing engine of the browser a textarea is the only save place where you can put your json stuff in... Ext will than read out the response from the textarea for you.

  3. #3
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    This is how i explain it in Ext JS In Action.
    Quote Originally Posted by http://manning.com/garcia
    1.4.1 Ext does Remoting with Direct
    Web Remoting is a means for JavaScript to easily execute method calls that are defined on the server side. It is extremely convenient for development environments where you would like to expose your server side methods to the client and not have to worry about all of the muck with AJAX connection handling. Ext.Direct takes care of this for us by managing AJAX requests and acts as a bridge between the client side JavaScript and any server side language.
    This functionality has great advantages to it, which include method management in a single location as well as unification of methods. Having this technology inside of the framework will ensure consistency across the consumers such as the data classes. Speaking of which, see how the addition of Ext.Direct brings new classes to the data classes.
    ....

  4. #4
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by dawesi View Post
    I'm still trying to get my head around why Ext.direct would ever return a textarea?

    What's the rationale behind this with Ext.direct?
    Can you explain this a bit further? Where did you get this impression?

  5. #5
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

  6. #6
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,366
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quote Originally Posted by dawesi View Post
    I'm still trying to get my head around why Ext.direct would ever return a textarea?

    What's the rationale behind this with Ext.direct?
    Sorry for this is not explained in the specification better. The response that crp_spaeth has given above is correct. The only time this occurs is when you are doing a multipart file upload and have uploaded a file and/or other form post to a hidden iframe.
    Aaron Conran
    @aconran
    Sencha Architect Development Team