25 Apr 2011 6:18 AM #1
Does Ext.Direct useful enough?
I have a prototype using Ext.Direct, so after using it I understand better what it does for me.
In some cases, it complain on the client side that I didn't provide the right number of arguments, and it batching my AJAX requests when many are done at the same time, like in the initialization of my UI.
Using JSON directly without Ext.Direct is quite easy in both Java Spring, and .NET MVC.
The value of validation of the number of arguments is low. My server would tell me anyway. So it seems the only value is the batching of requests.
With some customization of Ext JS we should be able to get batch JSON, instead of using a proprietary mechanism: http://groups.google.com/group/json-...b/json-rpc-2-0
25 Apr 2011 12:58 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Another great thing I like and have used is the ability to just execute PHP functions within JS.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.
27 Jun 2011 7:24 AM #3
13 Jul 2011 2:36 AM #4
@Tut, think this is not fully right.
I tried to implement Ext.direct with Zend_Json_Server which is a standard JSON-RPC implementation.
The stubs Ext.direct is using look really different as Zend_Json_Server generates, and also the response look different.
So I have to write my own Server class from the code shown here: http://www.sencha.com/forum/showthre...-and-php-Video
Also is right that the Ext.data.store property autoSync, set true, seem not to work always.
Actually I am testing out how to implement it in the right way.
By xp743 in forum Ext 3.x: User Extensions and PluginsReplies: 1Last Post: 26 Jul 2010, 11:56 AM
By adms in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 17 Apr 2010, 5:41 AM
By mask_hot in forum Ext.DirectReplies: 10Last Post: 4 Feb 2010, 4:03 PM
By dombroskib in forum Ext.DirectReplies: 14Last Post: 5 Jun 2009, 6:35 AM