[SOLVED] How do you use a LoadMask?
*NEW - Coolite Toolkit Version 0.6.0 now available for download or view examples.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[SOLVED] How do you use a LoadMask?
Subscribe
Last Login: Today @ 4:08:49 AM
Posts: 580,
Posted 7/9/2008 10:05:12 AM

Group: Coolite Premium Member & Early Adopter
Can someone provide an example of how to use a LoadMask on a FieldSet or a Panel with a button executing?

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 1:16:22 PM
Posts: 387,
Posted 7/9/2008 11:52:55 AM

Group: Core Development Team
 Hi Timothy,

The Coolite LoadMask property is used by internal logic only (you can set message and etc but you can't manage load mask (show/hide)). I can suggest next example


        <script type="text/javascript">
            function DoWork(panel){
                var loadMask=new Ext.LoadMask(panel.body, {msg:'Working 5 sec...'});
                loadMask.show();  
               
                //emulate 5 sec work
                var task = new Ext.util.DelayedTask(function(){loadMask.hide();});     
                task.delay(5000);           
            }
        </script>
        <ext:Panel runat="server" ID="Panel1" Title="LoadMask processing example" Width="300" Height="150">
            <Content>
                Content
            </Content>
            <Buttons>
                <ext:Button runat="server" ID="SomeWork" Text="Do work" AutoPostBack="false">
                    <Listeners>
                        <Click Handler="DoWork({Panel1});" />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:Panel>


In this example I manually create load mask, show it and hide
Please let me know if you need additional information

Vladimir
Vladimir Shcheglov,
Coolite Inc.
Core Developer
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 2:01pm