473,387 Members | 1,925 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,387 software developers and data experts.

Web Form Progress Bar

aj
Alan, you can achieve this by using XMLHttp Async
functionality in a javascript file.

Create an aspx page in which execute long running SQL
query, then do an XMLhttp post to that page from a js
function.
In the javascript create 2 funtion
Call LoadData in the window onload event.

var objXMLReq;
function LoadData() {
objXMLReq = new ActiveXObject
("Microsoft.XMLHttp");
var DataUrl = 'http://localhost/Query.aspx';

objXMLReq.onreadystatechange =
ManageASyncXMLHTTPOperation;
objXMLReq.open("POST", DataUrl, true);
objXMLReq.setRequestHeader('Content-
type', 'text/xml');
objXMLReq.send();

//Display Progress bar("Retrieving data...");
}

function ManageASyncXMLHTTPOperationDTL() {
switch (objXMLReq.readyState) {

case 2, 3:
break;

case 4:
//Hide the progress bar
//Display the data
div.innherText=objXMLReq.responseText;
}
}
-----Original Message-----
Does anyone know of web form Progress Bar controls or simulations for long-running SQLServer process?

Is it possible to use a conceptual method such as

1. Have SQLServer post status updates or number of seconds elapsed to database table, and

2. Have web form post commands to retrieve data from the table basedon a timer, but inhibit web form redrawing until SQLServer table progressnumbers
pass certain threshholds?

Thanks.

Alan
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City
.

Nov 17 '05 #1
4 3246
Downside here is it'll only work with IE. For multi-browser this is not an
option.

If only the HTML standard or JScript would include a standard built in HTTP
component - so useful in so many situations.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"aj" <ja********@yahoo.com> wrote in message
news:0b****************************@phx.gbl...
Alan, you can achieve this by using XMLHttp Async
functionality in a javascript file.

Create an aspx page in which execute long running SQL
query, then do an XMLhttp post to that page from a js
function.
In the javascript create 2 funtion
Call LoadData in the window onload event.

var objXMLReq;
function LoadData() {
objXMLReq = new ActiveXObject
("Microsoft.XMLHttp");
var DataUrl = 'http://localhost/Query.aspx';

objXMLReq.onreadystatechange =
ManageASyncXMLHTTPOperation;
objXMLReq.open("POST", DataUrl, true);
objXMLReq.setRequestHeader('Content-
type', 'text/xml');
objXMLReq.send();

//Display Progress bar("Retrieving data...");
}

function ManageASyncXMLHTTPOperationDTL() {
switch (objXMLReq.readyState) {

case 2, 3:
break;

case 4:
//Hide the progress bar
//Display the data
div.innherText=objXMLReq.responseText;
}
}
-----Original Message-----
Does anyone know of web form Progress Bar controls or

simulations for
long-running SQLServer process?

Is it possible to use a conceptual method such as

1. Have SQLServer post status updates or number of

seconds elapsed to
database table, and

2. Have web form post commands to retrieve data from

the table based
on a timer, but inhibit web form redrawing until

SQLServer table progress
numbers
pass certain threshholds?

Thanks.

Alan
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City
.

Nov 17 '05 #2
aj,

Thanks very much for your detailed reply.

I've had so many people tell me progress bars for backend SQL queries
couldn't be done in web forms.

Both your generous recommendation and the other extensive responses here
regarding multithreading convince me that there's always a way o do
something.

Regards,

Alan
"aj" <ja********@yahoo.com> wrote in message
news:0b****************************@phx.gbl...
Alan, you can achieve this by using XMLHttp Async
functionality in a javascript file.

Create an aspx page in which execute long running SQL
query, then do an XMLhttp post to that page from a js
function.
In the javascript create 2 funtion
Call LoadData in the window onload event.

var objXMLReq;
function LoadData() {
objXMLReq = new ActiveXObject
("Microsoft.XMLHttp");
var DataUrl = 'http://localhost/Query.aspx';

objXMLReq.onreadystatechange =
ManageASyncXMLHTTPOperation;
objXMLReq.open("POST", DataUrl, true);
objXMLReq.setRequestHeader('Content-
type', 'text/xml');
objXMLReq.send();

//Display Progress bar("Retrieving data...");
}

function ManageASyncXMLHTTPOperationDTL() {
switch (objXMLReq.readyState) {

case 2, 3:
break;

case 4:
//Hide the progress bar
//Display the data
div.innherText=objXMLReq.responseText;
}
}
-----Original Message-----
Does anyone know of web form Progress Bar controls or

simulations for
long-running SQLServer process?

Is it possible to use a conceptual method such as

1. Have SQLServer post status updates or number of

seconds elapsed to
database table, and

2. Have web form post commands to retrieve data from

the table based
on a timer, but inhibit web form redrawing until

SQLServer table progress
numbers
pass certain threshholds?

Thanks.

Alan
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City
.

Nov 17 '05 #3
Hi Alan,

I have replied your post in another
thread<microsoft.public.dotnet.framework.aspnet.we bcontrols>, titled: <Web
Form Progress Bar Control>.

I past the link here for your reference:

http://groups.google.com/groups?hl=e...readm=OiAxCajY
DHA.2448%40TK2MSFTNGP09.phx.gbl&rnum=1&prev=/groups%3Fq%3DWeb%2BForm%2BProgr
ess%2BBar%2BControl%2B%2Bv-lwang%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8
%26selm%3DOiAxCajYDHA.2448%2540TK2MSFTNGP09.phx.gb l%26rnum%3D1

Best regards,
Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Reply-To: "Alan Z. Scharf" <as*****@grapevines.com>
| From: "Alan Z. Scharf" <as*****@grapevines.com>
| References: <#0**************@TK2MSFTNGP09.phx.gbl>
<0b****************************@phx.gbl>
| Subject: Re: Web Form Progress Bar
| Date: Thu, 14 Aug 2003 04:13:21 -0400
| Lines: 89
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3718.0
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3718.0
| Message-ID: <eB*************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 207-237-240-45.c3-0.nyw-ubr2.nyr-nyw.ny.cable.rcn.com
207.237.240.45
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:167771
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| aj,
|
| Thanks very much for your detailed reply.
|
| I've had so many people tell me progress bars for backend SQL queries
| couldn't be done in web forms.
|
| Both your generous recommendation and the other extensive responses here
| regarding multithreading convince me that there's always a way o do
| something.
|
| Regards,
|
| Alan
|
|
| "aj" <ja********@yahoo.com> wrote in message
| news:0b****************************@phx.gbl...
| > Alan, you can achieve this by using XMLHttp Async
| > functionality in a javascript file.
| >
| > Create an aspx page in which execute long running SQL
| > query, then do an XMLhttp post to that page from a js
| > function.
| >
| >
| > In the javascript create 2 funtion
| > Call LoadData in the window onload event.
| >
| > var objXMLReq;
| > function LoadData() {
| > objXMLReq = new ActiveXObject
| > ("Microsoft.XMLHttp");
| > var DataUrl = 'http://localhost/Query.aspx';
| >
| > objXMLReq.onreadystatechange =
| > ManageASyncXMLHTTPOperation;
| > objXMLReq.open("POST", DataUrl, true);
| > objXMLReq.setRequestHeader('Content-
| > type', 'text/xml');
| > objXMLReq.send();
| >
| > //Display Progress bar("Retrieving data...");
| > }
| >
| > function ManageASyncXMLHTTPOperationDTL() {
| > switch (objXMLReq.readyState) {
| >
| > case 2, 3:
| > break;
| >
| > case 4:
| > //Hide the progress bar
| > //Display the data
| > div.innherText=objXMLReq.responseText;
| > }
| > }
| >
| > >-----Original Message-----
| > >Does anyone know of web form Progress Bar controls or
| > simulations for
| > > long-running SQLServer process?
| > >
| > > Is it possible to use a conceptual method such as
| > >
| > > 1. Have SQLServer post status updates or number of
| > seconds elapsed to
| > > database table, and
| > >
| > > 2. Have web form post commands to retrieve data from
| > the table based
| > >on a timer, but inhibit web form redrawing until
| > SQLServer table progress
| > >numbers
| > >pass certain threshholds?
| > >
| > > Thanks.
| > >
| > > Alan
| > >___________________________
| > >Alan Z. Scharf
| > >GrapeVine Systems
| > >New York City
| > >
| > >
| > >.
| > >
|
|
|

Nov 17 '05 #4
oj,

Thanks very much for the help and code. I will give it a try.

Regards,

Alan

"aj" <ja********@yahoo.com> wrote in message
news:0b****************************@phx.gbl...
Alan, you can achieve this by using XMLHttp Async
functionality in a javascript file.

Create an aspx page in which execute long running SQL
query, then do an XMLhttp post to that page from a js
function.
In the javascript create 2 funtion
Call LoadData in the window onload event.

var objXMLReq;
function LoadData() {
objXMLReq = new ActiveXObject
("Microsoft.XMLHttp");
var DataUrl = 'http://localhost/Query.aspx';

objXMLReq.onreadystatechange =
ManageASyncXMLHTTPOperation;
objXMLReq.open("POST", DataUrl, true);
objXMLReq.setRequestHeader('Content-
type', 'text/xml');
objXMLReq.send();

//Display Progress bar("Retrieving data...");
}

function ManageASyncXMLHTTPOperationDTL() {
switch (objXMLReq.readyState) {

case 2, 3:
break;

case 4:
//Hide the progress bar
//Display the data
div.innherText=objXMLReq.responseText;
}
}
-----Original Message-----
Does anyone know of web form Progress Bar controls or

simulations for
long-running SQLServer process?

Is it possible to use a conceptual method such as

1. Have SQLServer post status updates or number of

seconds elapsed to
database table, and

2. Have web form post commands to retrieve data from

the table based
on a timer, but inhibit web form redrawing until

SQLServer table progress
numbers
pass certain threshholds?

Thanks.

Alan
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City
.

Nov 17 '05 #5

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

Similar topics

1
by: angelina | last post by:
Hi, Can anyone help me write some code that will run a progress bar before a new form is loaded? The progressbar does not have to represent the actual progress of the form load but simply...
13
by: Martin Mrazek | last post by:
Hi, I check data validity in html form by JS. Something like for (i=0; i<document.form.elements.length; i++) { chechkValidity(i); } Unfortunately, the form has about two thousands elements...
7
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. ...
8
by: Brian Henry | last post by:
I created a smooth progress bar with this code.. but if you update the values in a row quickly of it and watch it on screen it flickers... how would i change this to reduce the flickering?...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
6
by: piercy | last post by:
its beta release day wooo!!.. or not. my colleague decides to kill my dreams and make me change some more stuff.. Anyway, ive seen this before but i cant work out to do it. I need a progress bar...
6
NeoPa
by: NeoPa | last post by:
Progress Indicator in Access Introduction Access has a bad habit of getting tied up with its processing and not giving a clue as to whether it has crashed or not (The operating system and tools...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.