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

showing progress bar

Hi if I want to show a progress bar in my web application
how can i do it
Like this much % of task has been completed as its shown when installing
some desktop application
i want to do same in my web application
Aug 28 '06 #1
6 1785
Hi,

Vikas Kumar wrote:
Hi if I want to show a progress bar in my web application
how can i do it
Like this much % of task has been completed as its shown when installing
some desktop application
i want to do same in my web application
You will have to poll the server to get the completion for the current
task, and then update your bar accordingly. To poll the server, use AJAX.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 28 '06 #2
can u give url of any article related to it
i don't have any idea abt it
how to show progress bar
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:O0**************@TK2MSFTNGP06.phx.gbl...
Hi,

Vikas Kumar wrote:
>Hi if I want to show a progress bar in my web application
how can i do it
Like this much % of task has been completed as its shown when installing
some desktop application
i want to do same in my web application

You will have to poll the server to get the completion for the current
task, and then update your bar accordingly. To poll the server, use AJAX.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Aug 28 '06 #3
Vikas,

you can create a progress bar in this way:

a) have a table with 2 columns. you can set the width of the first column
initially to 0%
e.g <table width=200px><tr><td id="percent" width=0%></td><td</td></tr>

b) you can use ajax to get the completion percentage and set the width
accordingly.
e.g. document.getElementById("percent").width = "30%"

I have just given the pseudo code of how it can be accomplished.

Regards,
Augustin
http://augustinprasanna.blogspot.com
"Vikas Kumar" wrote:
can u give url of any article related to it
i don't have any idea abt it
how to show progress bar
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:O0**************@TK2MSFTNGP06.phx.gbl...
Hi,

Vikas Kumar wrote:
Hi if I want to show a progress bar in my web application
how can i do it
Like this much % of task has been completed as its shown when installing
some desktop application
i want to do same in my web application
You will have to poll the server to get the completion for the current
task, and then update your bar accordingly. To poll the server, use AJAX.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


Aug 28 '06 #4
"Vikas Kumar" <ef*****@newsgroups.nospamwrote in message
news:ef**************@TK2MSFTNGP02.phx.gbl...
can u give url of any article related to it
i don't have any idea abt it
how to show progress bar
1) Launch your Internet browser (IE, FireFox, Netscape, Opera etc)

2) Navigate to http://www.google.com

3) Enter the text below in the box:

AJAX "progress bar"

4) Hit the button
Aug 28 '06 #5
Hello Vikas,

If what you wonder is just how to display such a progress bar on the web
page, here is a simple example that use javascript and a html <table>
element to display a progress bar:

========================
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
var val;
var tid;
function start_progressbar()
{
val = 0;
tid = window.setInterval("on_progress()", 100);

}

function on_progress()
{
val = val + 10;

document.getElementById("td1").style.width = val;

document.getElementById("label").innerHTML = (val/400 * 100) + "%";

if((val + 10) 400)
{
window.clearInterval(tid);

val = 0;

alert("matrix loading complete!");
}
}
</script>
</head>
<body onload="start_progressbar();">
<form id="form1" runat="server">
<div >
<table id="bar" cellpadding="0" cellspacing="0"
style="width:400;height:50;border-style:solid;border-width: 1;
border-color: black" >
<tr><td id="td1" style="width:0; background-color:Black"
></td><td id="td2"></td></tr>
</table>
<div id="label" >0</div>
</div>
</form>
</body>
</html>
=================================

also, you can find more web articles provide some more complex and nice
dhtml/script based web page progress bar:

#DHTML Progress Bar Widget using JavaScript and CSS
http://www.wingo.com/dhtml/ProgressBar.html

http://www.eggheadcafe.com/articles/20010610.asp

http://www.java2s.com/Code/JavaScrip...rogressbar.htm

In addition, as Laurent has said, if you want to integrate the progress bar
with some server-side operations' progress, we need to take care of other
things when implement the code logic communicate between client and server.
Please feel free to post here if you have anything unclear.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

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


Aug 28 '06 #6
re:
can u give url of any article related to it
See the chapter 3 samples at :

http://www.daveandal.net/books/6744/samples.aspx

Each of the samples has source code available.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Vikas Kumar" <ef*****@newsgroups.nospamwrote in message
news:ef**************@TK2MSFTNGP02.phx.gbl...
can u give url of any article related to it
i don't have any idea abt it
how to show progress bar
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:O0**************@TK2MSFTNGP06.phx.gbl...
>Hi,

Vikas Kumar wrote:
>>Hi if I want to show a progress bar in my web application
how can i do it
Like this much % of task has been completed as its shown when installing
some desktop application
i want to do same in my web application

You will have to poll the server to get the completion for the current task, and then update your
bar accordingly. To poll the server, use AJAX.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


Aug 28 '06 #7

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

Similar topics

5
by: ssp | last post by:
Dear all, I'm dealing with a very tricky problem and can't seem to find the answer with google. the problem is: i want to store huge data (binaries) inside a mysql databases blob - to later...
4
by: Scott Lundstrom | last post by:
I have a large amount of data I'm dropping into a dataset and would like to find a way to at the very least show the user that the program is working at retrieving the data and not locked up. I...
0
by: neil | last post by:
Hi, does anyone know if it is possible to get progress when adding a DirectoryEntry.SchemaFilter? I am adding one to extract the computer names on a Server 2003 box and would like to show a...
8
by: Raed Sawalha | last post by:
I have form with progress bar ,when application begin processing and progress bar moving if I minimized the form and try to restore it ,it is not showing until the processing completed ,how can I...
2
by: Matt Culbreth | last post by:
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,...
2
by: Dinesh Jain | last post by:
Hi all , As we run the .NET exe, first of all it loads all the necessary system dlls and user dlls at load time and then displays the main form of the application. But in between loading these...
2
by: Robert Smith | last post by:
Hello, I have a problem with my progress bar, as shown in the attached code, the values on the bar are incremented within a threaded timer event. The timer works fine and ticks all the way...
3
by: ConieFL | last post by:
In my main sub routine I have code similar to this Form.Show Call File_Routine The file routine searches for a configuration file, needed by the program. If the configuration file is not...
1
by: =?Utf-8?B?SmV0aHJv?= | last post by:
Currently using LogParser 2.2 via C# (VS2005 with .NET Framework 2.0) to search for specific errors in very large IISW3C logs. Program is functioning as intended but the size of the logs causes...
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
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...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.