-
23 Mar 2012 7:53 AM #1
Unanswered: form submit waitMsg
Unanswered: form submit waitMsg
How do you pop some feedback during the ajax call
tried
but nothing happensCode:form.submit({ waitMsg: 'publication...', url: 'publish.php' success: function(elt, response) { console.log(response); Ext.Msg.alert("Donnée publiée"); }, failure: function(elt, response) { console.log(response); Ext.Msg.alert("Donnée non publiée", response.description); } });
-
23 Mar 2012 9:04 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,637
- Vote Rating
- 435
- Answers
- 3106
The waitMsg doesn't go in the option object, it's an argument
Screen Shot 2012-03-23 at 12.06.36 PM.jpgMitchell 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.
-
23 Mar 2012 9:18 AM #3
I tried this also: but did not work
with 0, 2 or 3 'null,'Code:form.submit({ url: 'publish.php', success: function(elt, response) { console.log(response); Ext.Msg.alert("Donnée publiée"); }, failure: function(elt, response) { console.log(response); Ext.Msg.alert("Donnée non publiée", response.description); } },null,null,null,'publication...');
-
24 Mar 2012 12:57 PM #4
Hi
I didn't succeed to have any message or mask during form submission, please help
-
26 Mar 2012 12:23 AM #5
I'm doing like this, there must be something better, but could not make waitMsg work...
Code:Ext.Viewport.setMasked({ xtype: 'loadmask', message: 'Recherche...' }); form.submit( { url : 'find.php', success : function(elt, response) { Ext.Viewport.setMasked(false); //... }, failure : function(elt, response) { Ext.Viewport.setMasked(false); Ext.Msg.alert("Aucun", response.description); } } );
-
16 Aug 2012 8:19 PM #6


Reply With Quote