
Nido
|
| Posted: 12/24/2002, 6:22 AM |
|
Hello All,
Environment: CC2 - ASP with Templates, SQL 7.0
I have a big table (about 50,000) records. In my ASP page I have a grid form to display all these records at once because my client does not like to see 20 or 30 records per page, he want's to see them all.
The problem is that it takes quite some time to display the list.
Question: Is there any way that we can display a dynamic message like "Loading Data, please wait..." on the grid form and hide the message when the grid displays all the records???
Appreciate all your help and HAPPY HOLIDAYS!
Regards,
Nido
|
|
|
 |
EMG
|
| Posted: 12/24/2002, 7:01 AM |
|
You could do a pop up javascript window (window.open) and then close it when the page completes. The grid page is the parent window so it will be able to close the window it popped up dynamically. Soory no code example...
|
|
|
 |
Nido
|
| Posted: 12/24/2002, 8:02 AM |
|
Thanks for the quick response but a response with an example would be a great help.
|
|
|
 |
EMG
|
| Posted: 12/24/2002, 8:13 AM |
|
<SCRIPT LANGUAGE=javascript>
<!--
msg = window.open('http://www.google.com','loading','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=100,left=137,top=134');
//-->
</SCRIPT>
<%
for i=0 to 100000
Response.Write "Loading record number: "& i & "<br>"
next
%>
<SCRIPT LANGUAGE=javascript>
<!--
msg.close();
//-->
</SCRIPT>
|
|
|
 |
EMG
|
| Posted: 12/24/2002, 1:52 PM |
|
<SCRIPT LANGUAGE=javascript>
<!--
msg = window.open('http://www.google.com','loading','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=100,left=137,top=134');
//-->
</SCRIPT>
<%
Response.Buffer = true
Response.Flush
for i=0 to 500000
Response.Write "Loading record number: "& i & "<br>"
next
Response.Flush
%>
<SCRIPT LANGUAGE=javascript>
<!--
msg.close();
//-->
</SCRIPT>
|
|
|
 |
Nido
|
| Posted: 12/25/2002, 12:36 PM |
|
Thanks EMG for the script. Could you please tell me where to put this script on the page i.e. header or footer or anywhere else???
|
|
|
 |
|

|