Hi,

I've a button and I'm calling "click" function manually.

See code:




<ext:Button ID="btnAdicionar" runat="server" Text="Adicionar" Icon="Add"> 
<Listeners> 
<Click Handler="
if(#{frmPerfilAtribuicao}.getForm().isValid()){
submitCheckedNodes();}
else{
Coolite.AjaxMethods.ShowValidateMessage();}" />
</Listeners> 
</ext:Button><script>



function submitCheckedNodes() {


    var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
    myMask.show();

    hashTable = ''; 
    findCheckedNodes(<%= this.treeItensDisponiveis.ClientID %>.root); 
    if(hashTable != '')
    { 
        Coolite.AjaxMethods.SubmitCheckedNodes(hashTable); 
        myMask.hide();
    } 
    else
    {
        myMask.hide();
        Coolite.AjaxMethods.ShowValidateMessage();
    } 
}
</script>
How can i show a wait message while load operation running?

Thanks