View Full Version : How to position WaitMsg
ajaxE
27 Oct 2007, 9:56 PM
I am using WaitMsg at form submission. How to position WaitMsg box in top? It always goes pretty low portion of a screen, I have to scroll to see it.
form_instance_create.submit({
method: 'POST',
waitMsg:'Send message and upate state...',
reset: false,
params: {send: 'yes'},
...
});
Thanks for your help!
brian.moeskau
27 Oct 2007, 11:00 PM
See if this works. The 20 in the alignTo call is the vertical offset from the form element's center-top, adjust as needed:
form_instance_create.submit({
method: 'POST',
waitMsg:'Send message and upate state...',
reset: false,
params: {send: 'yes'},
...
});
var el = form_instance_create.getEl();
el.child('.x-mask-loading').alignTo(el, 't-t', [0,20]);
ajaxE
28 Oct 2007, 9:48 AM
Thanks Brian for your quick reply!
It compilaned that
var el = form_instance_create.getEl(); is not a function.
I must have defined my form wrong so this el is not working? If you have any inside, please let me know. form_instance_create is visible within the scope.
Thanks for your help!
brian.moeskau
28 Oct 2007, 10:05 AM
I assumed that form_instance_create is a BasicForm. If it's a regular Ext.form.Form change it to form_instance_create.getForm(). If it's something else, then you'll have to figure out how to get to the underlying form.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.