SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Search progress bar
-
Dec 12, 2003, 05:50 #1
- Join Date
- Apr 2003
- Location
- Three Bear's Cottage
- Posts
- 126
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Search progress bar
I have an ASP page on my intranet that searches a large database. After you click search it takes a while for the results to display so you just get a blank page and it looks like nothing is happening.
What I want to do is, using javascript, display something that makes it obvious that it is actually doing something. This could be either a progress bar or an animated image that dispappears once the page is loaded.
Does anyone know where I can find a script that will do this?
Thanks.
-
Dec 12, 2003, 16:33 #2
- Join Date
- Dec 2001
- Location
- Gouda, The Netherlands
- Posts
- 64
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can best achieve this by setting a refresh to occur every few seconds or so using a timer routine.
Code:timerID = setTimeout("window.location.reload(true)",1000);
Code:<meta http-equiv="refresh" content="5; url=http://www.yourdomain.com">
Code:<body onLoad="window.location='/newlocation.html'">
Kiffin
Your average future-famous kind of guy...
Bookmarks