473,395 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Showing a Please Wait page

Hello,

I've got a fairly typical request to show a "Plese Wait" page while a
long process is running. In this case, the user fills out a form,
presses the button, a process searches for items, and in about 6
seconds it is returned.

I've read up on the normal ways of doing this with a new Thread() or
with a META tag to refresh the page, but it seems most of these
methods use Session. We're not using Session at all in our web
app--totally stateless.

Does anybody have a good way of doing such functionality without
Session to keep the page state?

Thanks,

Matt
Nov 18 '05 #1
2 1503
this if from "classic" asp days but the same principle should work
http://www.darkfalz.com/1058/
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Matt Culbreth" <ma**@mattculbreth.com> wrote in message
news:d6**************************@posting.google.c om...
Hello,

I've got a fairly typical request to show a "Plese Wait" page while a
long process is running. In this case, the user fills out a form,
presses the button, a process searches for items, and in about 6
seconds it is returned.

I've read up on the normal ways of doing this with a new Thread() or
with a META tag to refresh the page, but it seems most of these
methods use Session. We're not using Session at all in our web
app--totally stateless.

Does anybody have a good way of doing such functionality without
Session to keep the page state?

Thanks,

Matt

Nov 18 '05 #2
I don't know if this will help you but here is a control that displays a
progress bar using javascript. It is call by starting the startMsg(). This
progress bar is fairly short but you can modify the parameter to increase
it. I can't take credit for the code but maybe it will help you.

<%@ Control %>

<div id="waiting">
<table id="msgCell" align="center"><tr><td>
Processing please wait ...
</td></tr><tr><td style="font-size:8pt;padding:2px;border:solid black 1px">
<span id="progress1">&nbsp; &nbsp;</span>
<span id="progress2">&nbsp; &nbsp;</span>
<span id="progress3">&nbsp; &nbsp;</span>
<span id="progress4">&nbsp; &nbsp;</span>
<span id="progress5">&nbsp; &nbsp;</span>
<span id="progress6">&nbsp; &nbsp;</span>
<span id="progress7">&nbsp; &nbsp;</span>
<span id="progress8">&nbsp; &nbsp;</span>
<span id="progress9">&nbsp; &nbsp;</span>

</td></tr></table>
</div>

<script language="javascript">
var progressEnd = 9; // set to number of progress <span>'s.
var progressColor = 'blue'; // set to progress bar color
var progressInterval = 500; // set to time between updates (milli-seconds)

var progressAt = 0; //progressEnd;
var progressTimer;

function progress_clear() {
for (var i = 1; i <= progressEnd; i++)
document.getElementById('progress'+i).style.backgr oundColor = 'transparent';
progressAt = 0;
}
function progress_update() {
progressAt++;
{if (progressAt > progressEnd) {
progress_stop()
}
else

{document.getElementById('progress'+progressAt).st yle.backgroundColor =
progressColor
progressTimer = setTimeout('progress_update()',progressInterval);} }

}

function progress_stop() {
progress_clear();
window.clearTimeout(progressTimer);
// hideobj('waitingDiv','');
//hideobj('waiting','none')
}
function startMsg() {
// hideobj('waitingDiv','none');
progress_update();
}
function hideobj(objname,type) {
var div1=document.getElementById(objname);
div1.style.display = type;

}
</script>
"Matt Culbreth" <ma**@mattculbreth.com> wrote in message
news:d6**************************@posting.google.c om...
Hello,

I've got a fairly typical request to show a "Plese Wait" page while a
long process is running. In this case, the user fills out a form,
presses the button, a process searches for items, and in about 6
seconds it is returned.

I've read up on the normal ways of doing this with a new Thread() or
with a META tag to refresh the page, but it seems most of these
methods use Session. We're not using Session at all in our web
app--totally stateless.

Does anybody have a good way of doing such functionality without
Session to keep the page state?

Thanks,

Matt

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
2
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
0
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
4
by: puja patel | last post by:
hi all, I am developing a shopping cart website in C# where after selecting item, user enters credit card details and click on submit button.This request is then processed by the gateway which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.