Login Progress Bar

E

Ernie

I am using Commerce Server and during the login phase, it may take a
while. I have been requested that if someone is in the progress of
loggin in, to display an animated gif stating "Please Wait". I am not
allowed to use frames (I know why) and have been asked to avoid
JavaScript if at all possible.

Does anyone know how to check for an event, display a gif without
waiting for the current function that manages the login to return before
refreshing the page.

I was looking at some client side event?


A Plan without Action is a DayDream
Action without a Plan is a Nightmare
 
E

Ernie

The approach worked for standard HTML and VB. We utilize C# and server
side controls. Do you have an example of a button being pressed inside
a form and that exact text being displayed?

The following will display the text "Please Wait..." Each form load --
How would you approach it if you only wanted it to display when you hit
the button?

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="PleaseWaitTestVB.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<%
Response.Buffer = True
%>




<form id="Form1" method="post" runat="server">
<script>
<!--
if (document.all)
{
document.write("<span id=w>Please");
document.write(" wait...</span>");
}
//-->
</script>
<%
Response.Flush()
%>
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 40px; POSITION:
absolute; TOP: 128px" runat="server"
Text="Button"></asp:Button>
<%
' put your long-running processes here.
' this should be enough to demonstrate:
Dim i as Integer
Dim x as Integer
for i = 1 to 1000000
x = x + 1
next
%>
<script>
<!--
if (document.all)
{
document.all("w").style.display = 'none';
}
//-->
</script>
</form>
</body>
</HTML>

A Plan without Action is a DayDream
Action without a Plan is a Nightmare
 
A

Aaron [SQL Server MVP]

The approach worked for standard HTML and VB. We utilize C#

Please see this group:

microsoft.public.dotnet.framework.aspnet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top