Click to See Complete Forum and Search --> : Displaying a "Loading: Please Wait" message in a webpage


partyman66
August 21st, 2003, 04:28 PM
I am creating a webpage using PHP to make sql querries to a database and to display the data from the querries on my page. The page takes about 20 and 30 seconds to fully load, as a result of these lengthy querries and nothing is displayed on the page until all of the querries are done being processed.

I would like my page to display some sort of "Loading data: Please Wait" type of message inside the window until the data is fully loaded.

Can anyone provide me with some information on how to do this?
My guess is that javascript is the way to go, but I don't really know how to do it and haven't had much luck finding info on it.

Thanks!

jdenzer
August 23rd, 2003, 03:22 AM
How about using a PopUp window that says "loading please wait . . ." then close the window after the sql query is done.



<script>
var warn_window = window.open("","displayWindow","menubar=no,scrollbars=no,status=no,width=100,height=50")
warn_window.document.write("loading please wait . . .");

<?
sql query code here

print "warn_window.close();</script>";
?>



Only thing does not work well if user has popup blocker