473,505 Members | 14,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Progress bar

Hello,

I would like to know if there is a way to display a progressbar while
loading a page.
(We developped our application in Caché (intersystems), some functions need
some time to
calculate&display data, in the mean time I don't want users to stare at an
internet explorer in whitch nothing happens, i want them to see that
something is happening and even better, the status of loading.)

I saw on the internet that javascript won't work because it has no insight
to the bytes
received. (But ok, i can do without that information.)
I've tried to use an animated gif, (same gif you see when starting windows
for example), or just the text: "please wait...", but then the problem is
that although I can hide and show it through Javascript, it won't be shown
before the page is completely loaded. In a script i show the text: please
wait. In the body i use the onload-event to hide the text but that wont work
because the script won't be executed before the onload event is triggered.

I can't find a way to trigger an onbeforeload-event. (For the script that
displays Please wait)

Any ideas?

Thanks,
Simon

Jul 5 '07 #1
2 3861
On 5 jul, 05:22, "Simon" <simon1...@quicknet.nlwrote:
Hello,

I would like to know if there is a way to display a progressbar while
loading a page.
(We developped our application in Caché (intersystems), some functions need
some time to
calculate&display data, in the mean time I don't want users to stare at an
internet explorer in whitch nothing happens, i want them to see that
something is happening and even better, the status of loading.)

I saw on the internet that javascript won't work because it has no insight
to the bytes
received. (But ok, i can do without that information.)
I've tried to use an animated gif, (same gif you see when starting windows
for example), or just the text: "please wait...", but then the problem is
that although I can hide and show it through Javascript, it won't be shown
before the page is completely loaded. In a script i show the text: please
wait. In the body i use the onload-event to hide the text but that wont work
because the script won't be executed before the onload event is triggered.

I can't find a way to trigger an onbeforeload-event. (For the script that
displays Please wait)

Any ideas?

Thanks,
Simon

Check this link http://www.lawebdelprogramador.com/c...xto=JavaScript
is 100% pure js progress bar.

Jul 5 '07 #2
lala4life wrote:
On 5 jul, 05:22, "Simon" <simon1...@quicknet.nlwrote:
>Hello,

I would like to know if there is a way to display a progressbar while
loading a page.
(We developped our application in Caché (intersystems), some functions need
some time to
calculate&display data, in the mean time I don't want users to stare at an
internet explorer in whitch nothing happens, i want them to see that
something is happening and even better, the status of loading.)

I saw on the internet that javascript won't work because it has no insight
to the bytes
received. (But ok, i can do without that information.)
I've tried to use an animated gif, (same gif you see when starting windows
for example), or just the text: "please wait...", but then the problem is
that although I can hide and show it through Javascript, it won't be shown
before the page is completely loaded. In a script i show the text: please
wait. In the body i use the onload-event to hide the text but that wont work
because the script won't be executed before the onload event is triggered.

I can't find a way to trigger an onbeforeload-event. (For the script that
displays Please wait)
You really, *really* should use a little effort. You made it all the
way to Google Groups, but couldn't search Google for "javascript
progress bar?"

Anyway, you could an XMLHttpRequest to initiate the request, and it can
notify you when that request is complete.
Check this link http://www.lawebdelprogramador.com/c...xto=JavaScript
is 100% pure js progress bar.
Nothing against the idioma de Española, but that code is ridiculously
complex. And it doesn't need to be...

http://www.dynamicdrive.com/dynamici...lprogress2.htm for example.

Although, I would still use an XHR, and update the width of a DIV or
other block element whilst the XHR runs through its onprogress event.
No clue if Internet Explorer supports that in version 7. I'll venture a
guess and say "no."

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jul 5 '07 #3

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

Similar topics

3
2857
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
7
5371
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. ...
1
1634
by: scorpion53061 | last post by:
this code came from cor and I think Armin authored it. I am trying to download an access database and track its progress. It is reading the size fo the file but I am unsure of how to get the...
8
5177
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?...
8
4728
by: WhiteWizard | last post by:
I guess it's my turn to ASK a question ;) Briefly my problem: I am developing a Windows app that has several User Controls. On one of these controls, I am copying/processing some rather large...
1
4103
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...
15
3503
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
5
4033
by: Aggelos | last post by:
Hello I am doing sevreral scripts like sending a newsletter that might take a while to finish first to prevent the browser from timing out and to keep the user informed of the process progress I...
1
3214
by: Bob | last post by:
Hi, I am having trouble seeing how this bolts together. The UI starts a process which involves a long running database update. All Database activity is handled by a class called DT. DT has a...
0
3094
by: jags_32 | last post by:
Hello We use MFG-PRO as our ERP system which in turn uses Progress databases. In the old version of SQL 2000, using DTS packages, we used to set the code page via command prompts and execute DTS...
0
7216
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
7098
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
7303
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,...
1
7018
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...
0
7471
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
4699
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...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.