View Full Version : Show a loading spinner when click 'LOAD' button in a form...
Andy Lincoln
11 Oct 2012, 11:49 PM
I want to show a loading spinner when I click the 'LOAD' button in a form. How to get this done??? Please help me to do so...Thanks in advance!!!
a.premkumar
12 Oct 2012, 1:27 AM
I want to show a loading spinner when I click the 'LOAD' button in a form. How to get this done??? Please help me to do so...Thanks in advance!!!
Use loadmask.
Place this code in your load button handler
handler:function()
{
// To create and show loader
var myMask = new Ext.LoadMask(myPanel, {msg:"Please wait..."});
myMask.show();
// To hide after 3 seconds
Ext.defer(function()
{
myMask.hide();
},3000);
}
Regards,
Premkumar
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.