Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 29th, 2004, 06:18 AM
Authorized User
 
Join Date: Oct 2003
Location: Glasgow, , United Kingdom.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display a msg when waiting 4 output from database

Hi

I'm running several queries in my asp page to retrieve data from an access database and display it in a web page. The queries take a long time to run so the user sees a blank screen until the queries have executed and display the data on the screen.

My question is, is it possible to display a message to inform the user to be patient while the queries are executing in the background? I haven't a clue where to start so any help is much appreciated.

Thanks in advance,

Sach.
Reply With Quote
  #2 (permalink)  
Old April 29th, 2004, 08:09 PM
Authorized User
 
Join Date: Jan 2004
Location: , , .
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

helo
u could try to output a line before u start the queries to the database, then when the results are displayed, remove the line
e.g.
   strTxt = "Please wait while the results are being retrieved"
   response.write(strTxt)
   queries to database
   display results

   strTxt = ""
   response.write(strTxt)

haven tried it out though, just came to my head as i read ur question
let me know if it works

Reply With Quote
  #3 (permalink)  
Old April 29th, 2004, 08:24 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I'm not sure your solution will work, dhaywirex.

I came up with this (I'm not sure this will work, either....):

<html>
<script language=javascript>
var loadingWin = window.open('about:blank','loadingWin');
loadingWin.document.write('<html><head><title>Load ing...</title></head><body>Please wait. The page you requested is loading.</body></html>');
function destroyPopup()
{
loadingWin.close();
}
</script>
<body onload='destroyPopup()'>
<%
'do your queries here
%>
</body>
</html>

This script should (no guarantees here) pop up a window as soon as it's opened, and then close it when it's done loading.

Let me know if it works.

Snib

<><
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to display error msg in custom ctrl anirosek ASP.NET 1.0 and 1.1 Basics 1 July 25th, 2007 09:34 AM
Can display output as Element name HareshVani XSLT 2 March 22nd, 2006 03:19 AM
Cannot display/return SQL Query Output from a Vari sjm SQL Server DTS 1 September 9th, 2005 11:40 AM
Why "Waiting for..." Gringosperto Dreamweaver (all versions) 1 December 7th, 2004 04:30 PM
msg display before starting job msrnivas .NET Web Services 7 March 14th, 2004 09:26 PM



All times are GMT -4. The time now is 09:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.