I got this done with help from sekr (thanks sekr) in this thread…
http://www.scriptcase.net/forum/showthread.php?8059-quot-Loading-quot-label-when-loading-the-grid
This is what I wanted and how I did it…
I have a control application that takes in some information before I sc_redir(my_blank_application) to produce the PDFs (hand coded). The blank application takes about thirty seconds to complete and I wanted some kind of indication to the end user that the application hadn’t stopped working.
In the control application -> Events -> onApplicationInit I put (obviously doesn’t have to be as fancy as this)…
[head_loading]=’
<style>
.spinner {
border: 2px solid #a1a1a1;
padding: 10px 40px;
background: #dddddd;
width: 300;
margin-left: auto ;
margin-right: auto ;
border-radius: 25px;
font: 15px arial, sans-serif;
}
</style>
<script type=“text/javascript” language=“JavaScript”>
function ShowContent(d) {
document.getElementById(d).style.display = “block”;
}
</script>
<div id=“spinner” class=“spinner” style=“display:none;”>
Producing reports. Please wait… <img id=“img-spinner” src="…/_lib/img/spinner2.gif"/>
</div>
<script type=“text/javascript” language=“JavaScript”>
ShowContent(“spinner”);
</script>’;
In the control application -> Events -> onValidateSuccess I put…
echo [head_loading];
sc_redir(my_blank_application);
Now, immediately I click “Ok” in the control application, the spinner <div> displays and remains there until the blank application completes it’s job.
Job done!!