in reply to displaying a screen while waiting for some computation
put this in a file "loading.html"<html> <body> <form name="myform" action="report.cgi" method="get"> <input type="button" value="Delayed Load" onclick="javascript:submitFo +rm(document.myform)"> </form> <div id="pleaseWaitDiv" style="display: none;"> <jsp:include page="loading.html"/> </div> <script language="javascript"> function submitForm(oForm) { // Hide the form document.getElementById('myform').style.display = 'none'; // Display progress page document.getElementById('pleaseWaitDiv').style.display = 'block'; oForm.submit(); } </script> </body> </html>
Now the page "loading.html" would be displayed until "report.cgi" generates the page.Hope this helps.<html> <body> Loading!!!!!!!!!! </body> </html>
|
|---|