12 May 2009 5:38 PM #1
- Join Date
- Mar 2007
- Melbourne, Australia (aka GMT+10)
- Vote Rating
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?Lead Trainer / Sencha Specialist
Teahouse Training Company
SenchaWorld.com - Videos, and stuff
Sencha.Community - Tools, Extensions and Resources
TeahouseHQ.com - Sencha Ecosystem Training Portal
Code Validation : JSLint | JSONLint | JSONPLint
13 May 2009 3:39 AM #2
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.
13 May 2009 3:50 AM #3
This is how i explain it in Ext JS In Action.
Originally Posted by http://manning.com/garcia
13 May 2009 3:51 AM #4
13 May 2009 3:54 AM #5
13 May 2009 6:38 AM #6Aaron Conran