Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating progress on Web Page

Status
Not open for further replies.

maxdamme

Programmer
May 21, 2007
10
IL
Hey.
I want to know is there any simple way without AJAX to update a webpage during some calculation?
I mean for example if after filling a form i run a function that makes some calculations and what i want is only update each 10 sec a label with the progress.
Any help much appreciated.
Thanx.
 
you could add a meta tag to the webpage which refreshes every 10 seconds. but the page will always refresh you can't stop/start it.

you could also use javascript to submit the form and use a javascript timer to refresh.

you still need to solve the problem of running a process outside the life cycle of the web request. You will also need to store the progress of that process so on postback you can retrieve that information and send it to the client.

Most AJAX progress bars are really just an asynchronis call to the web server with an animated graphic that looks like it's working. the request begins, the image is shown. the request completes the image is hidden.

Why are you opposed to AJAX?

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Either use AJAX (which would allow you to report the true amount of progress being made), or do like everyone else does and use an animated .gif file (see: Expedia.com, etc) that doesn't report the true progress, but at least lets the user look at something.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
The other option would be an ActiveX control - although they are not a good idea... just putting it out there for reference sake :)
 
Thanx for your replies.
The thing is i'm pretty new to all this stuff, and i'm not looking right now for complex programming. i just need to put some calculations program on a website, and i don't even need a progress bar, just update the user every now and then how much records i alrady processed and how much left. So i looking for the simplest way to do this.
Probably i just go figuring what AJAX is!
Thanx again!
 
there must be a way to push results into a frame, i've seen it done in a web game i play. how they do it i'm not sure.
anyone?


mr s. <;)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top