View Full Version : Loading Screen

4 Nov 2008, 10:57 PM
This is my html in aspx page...

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="GENERATOR" content="Microsoft Visual Studio 6.0" />
<link rel="stylesheet" type="text/css" href="./resources/css/xtheme-default.css" />
<script type="text/javascript" src="./release/ext-base.js"></script>
<script type="text/javascript" src="./release/ext-all.js"></script>
<title>Ezee View Stub Generator</title>
<body onload ="Form_Loader('<%=Customer%>','<%=Project%>')">

<!-- <div>javascript:Form_Loader('<%=Customer%>','<%=Project%>')</div> -->

The form_loader function will have the panel, grid panel and so on...

Its displaying properly...

But I want to display a loading screen before the form is displayed.....

That is at the start of the function the loading screen should be displayed and when the function ends it should disappear..

I tried something like this..

var doc_body = new Ext.getCmp(document.body)
and then

doc_body.body.mask function

But its not working.... Please assist..

Any Hlp would be appreciated....

Thanks in advance for you help.......

4 Nov 2008, 11:43 PM
// Masking
Ext.getBody().mask('Loading text ...', 'x-mask-loading');

// Remove mask

try this

Note: please use "code" tag when posting ..