3
私は進行状況バーを書き込むか、onModuleLoadで始まるSmart Gwtアプリケーションに読み込み用GIFを追加しようとしていますが、アプリケーションが表示される直前に終了します。これを判断できるイベントハンドラがありますか?私は見ましたが、何も見つけられませんでした。Smart gwt。読み込みが完了したかどうかを確認する方法
私は進行状況バーを書き込むか、onModuleLoadで始まるSmart Gwtアプリケーションに読み込み用GIFを追加しようとしていますが、アプリケーションが表示される直前に終了します。これを判断できるイベントハンドラがありますか?私は見ましたが、何も見つけられませんでした。Smart gwt。読み込みが完了したかどうかを確認する方法
誰かが何か他のものを探している間にこれに答えていることに気づいたことはありません。 SmartGWTショーケースを見ると、アプリケーションの読み込み中にポップアップが表示されます。私のアプリケーションでは、私はそこのメカニズムをcoopted、あなたは単にあなたのwebapp.htmlにこれを追加する必要があります。
<body>
の一環として<head>
<!--CSS for loading message at application Startup-->
<style type="text/css">
body { overflow:hidden }
#loading {
border: 1px solid #ccc;
position: absolute;
left: 45%;
top: 40%;
padding: 2px;
z-index: 20001;
height: auto;
}
#loading a {
color: #225588;
}
#loading .loadingIndicator {
background: white;
font: bold 13px tahoma, arial, helvetica;
padding: 10px;
margin: 0;
height: auto;
color: #444;
}
#loadingMsg {
font: normal 10px arial, tahoma, sans-serif;
}
</style>
の一環として、スクリプトタグは、Webアプリケーションをロードする前に.nocache.js:
<!--add loading indicator while the app is being loaded-->
<div id="loadingWrapper">
<div id="loading">
<div class="loadingIndicator">
<!--<img src="images/pieces/48/cube_green.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>SmartGWT<br/>-->
<img src="WebApp/sc/skins/EnterpriseBlue/images/loading.gif" width="16" height="16" style="margin-right:8px;float:left;vertical-align:top;"/>WebApp<br/>
<span id="loadingMsg">Loading styles and images...</span></div>
</div>
</div>
<!--load skin-->
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading skin...';</script>
<script type="text/javascript">
document.write("<"+"script src=WebApp/sc/skins/EnterpriseBlue/load_skin.js isc_version=7.1.js><"+"/script>");
</script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Application<br>Please wait...';</script>
<!--include the application JS-->