I use the codes from Showcase.html in my own html file and configurate my project xml like Showcase.gwt.xml in order to change skins.
In the host module, it works fine, i got firstly the loading page like the Showcase, and after this i got my own gwt page.
The promblem is, when i compile my project using compiling button of broswer in host module, i see firstly the loding page in the extern web browser after compiling, and it stopt at loading page, and i can not see my own page like in the host module.
can any one tell me, how can i handle this promblem?
this is the code what i use:
<html>
<head>
<title>Application</title>
<!--CSS for loading message at application Startup-->
<style type="text/css">
body { overflow:hidden }
#loading {
border: 2px 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>
<link rel="stylesheet" href="Showcase.css">
<link rel="stylesheet" href="css/CssStylesSample.css">
</head>
<body>
<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
<!--add loading indicator while the app is being loaded-->
<div id="loadingWrapper">
<div id="loading">
<div class="loadingIndicator">
<img src="images/earth.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>Application<br/>
<span id="loadingMsg">Loading styles and images...</span></div>
</div>
</div>
<script>var isomorphicDir = "sc/"</script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Core API...';</script>
<!--include the SC Core API-->
<script src=sc/modules-debug/ISC_Core.js?isc_version=7.0beta.js></script>
<!--include SmartClient -->
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading UI Components...';</script>
<script src=sc/modules-debug/ISC_Foundation.js?isc_version=7.0beta.js></script>
<script src=sc/modules-debug/ISC_Containers.js?isc_version=7.0beta.js></script>
<script src=sc/modules-debug/ISC_Grids.js?isc_version=7.0beta.js></script>
<script src=sc/modules-debug/ISC_Forms.js?isc_version=7.0beta.js></script>
<script src=sc/modules-debug/ISC_RichTextEditor.js?isc_version=7.0beta.js></script>
<script src=sc/modules-debug/ISC_Calendar.js?isc_version=7.0beta.js></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Data API...';</script>
<script src=sc/modules-debug/ISC_DataBinding.js?isc_version=7.0beta.js></script>
<script>
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
// Determine what skin file to load
var currentSkin = readCookie('skin');
if (currentSkin == null) currentSkin = "TreeFrog";
</script>
<!--load skin-->
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading skin...';</script>
<script type="text/javascript">
document.write("<"+"script src=sc/skins/" + currentSkin + "/load_skin.js?isc_version=7.0beta.js><"+"/script>");
</script>
<!--include the application JS-->
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Application, Please Wait...';</script>
</script>
<!-- -->
<!-- This script is required bootstrap stuff. -->
<!-- You can put it in the HEAD, but startup -->
<!-- is slightly faster if you include it here. -->
<!-- -->
<script language="javascript" src="com.plefext.PLEFExtMain.nocache.js"></script>
</body>
</html>
Use FireBug or Fiddler to monitor the http traffic and see if for any reason some resources are not found. Not sure why that would happen, but its a good first step. If all the modules / js files are loaded then look to see if any JS error has occurred.
it looks like that the browser can not run my “com.plefext.PLEFExtMain.nocache.js” or something happens when browser run this js, so that my own site can not be showed.
in IE i got this message:
Problems with this Web page might prevent it from being displayed properly or functioning properly.
The early vision of my project(without codes for skin) works well, befor and after compiling. This problem occured after i used code for changing skin,
if the firewall caused this problem, then my early vision should not work after compiling too. but it works.
I find the problem, in my project i have a ListGrid, that fetches data automatically. if i comment this code, it runs well, i see my page after loading page, but what should i do to let the page be showed correctly and in the same time the grid automatically fetch data?