I have a stored procedure that takes 10 - 15 seconds to run. I need to display a "Please wait" message until the records are returned. Then the "Please wait" message is replaced by the records returned.
i didn't try but you could use dhtml to do it ..
use <cfflush> to send your dhtml layer.. and then just set the visibility to "hidden" when the query is completed
I have done this with many sites and the only thing I have found to work well is JavaScript. Let me know if you need some code I can send you an example.
I was wondering if you could post the code so that I can also see the example. I have been trying to do this and I just cannot get it to work correctly.
Hey Mario, I usually run a animated gif or flash during an insert or an update section in a site before going to the next page. I am not sure if that will work for you. You want to be able to show the animation while the page loads then show the results right? Let me see if I can modify some of my code to fit your problem better.
that's one of the simpliest solution i found and it works in almost all browser (including IE, NS4+, NS6)
<html>
<body>
<div id="loading" style="position:absolute;top:100px;left:300px;">
<!--- Your waiting text or image goes here --->
LOADING PLEASE WAIT...
</div>
<!--- this will send the <div> to the client side before the begining of the queries --->
<cfflush>
<!--- Your big queries go here --->
<!--- finally, just hide the <div> layer --->
<script>
if (document.all)
document.all.loading.style.visibility = "hidden";
else if (document.getElementById)
document.getElementById("loading".style.visibility = "hidden";
else
document["loading"].visibility = "hidden";
</script>
</body>
</html>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.