16 Aug 2012 3:20 AM #1
Unanswered: Synchronous AJAX requests?
I need to send several POST requests so that my app fires each request only when the response of the previous request has been received.
In Ext 4.1.1 there is an async property for Ext.data.Connection. http://www.sencha.com/forum/showthre...ght=async+ajax
Is there anything similar in ST2?
16 Aug 2012 4:33 AM #2
16 Aug 2012 4:37 AM #3
Doing an ext.Ajax.request, you can also use the async parameter even though it's not in the docs. I tested it and it works.
18 Aug 2012 8:54 AM #4
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I would stay away from a sync request. Your app will freeze while it is pending.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.