Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 29th, 2004, 06:18 AM
Authorized User
Join Date: Oct 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display a msg when waiting 4 output from database


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,

Old April 29th, 2004, 08:09 PM
Authorized User
Join Date: Jan 2004
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts

u could try to output a line before u start the queries to the database, then when the results are displayed, remove the line
   strTxt = "Please wait while the results are being retrieved"
   queries to database
   display results

   strTxt = ""

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

Old April 29th, 2004, 08:24 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

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

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

<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()
<body onload='destroyPopup()'>
'do your queries here

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.



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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.