|
-
Jan 29th, 2002, 02:49 AM
#1
Thread Starter
-= B u g S l a y e r =-
Loading....
Hi all,
my first attempt on making an ASP 
I'v made a page that fetches data from an access database, this takes some time, and I was wondering if there is a simple way to show to the user that a process is ongoing...
something like this :
or just show "Loading..." would be enough...
thanks
-
Jan 29th, 2002, 06:15 AM
#2
Fanatic Member
the script from the screenshot you posted there is simple, it isnt being displayed while the data is being entered, it works something like this:
HTML page where user fills in data >>> ASP page that adds the data to the database >>> HTML page that shows "thanx for posting, will be redirected to your post in 3 seconbds", it is only to display to the user that the post has been aded, and then redirects itself.
is that clearer now ?? anyway, if you wanted a progress bar to show how far the process is, forstly it would have to bo done with a client side script which ASP is not, and secondly i dont think it is possible. (I may be wrong though )
hope i was of some assistance.
-
Jan 29th, 2002, 06:33 AM
#3
Addicted Member
You could do it with javascript and layers. It won't be a true progress bar as such but will overlay the results page with a layer, until the underlying page has finished.
Here's some code that may be of use (not my own, it's from some source code website). It's not the best result I've ever seen but should give you something to mess about with. And if you search javascript sites yu may find a better one (there are some animated "progress bars" knocking around as well).
In <head> part:
Code:
<SCRIPT LANGUAGE="JavaScript">
function PleaseWait()
{
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'hidden';
else { // IE 4
document.all.hidepage.style.visibility = 'hidden';
}
}
}
</script>
In the <body>
Code:
<BODY OnLoad="PleaseWait()">
<div id="hidepage" style="position: absolute; left:10px; top:10px;
background-color: #FFFFCC; layer-background-color:
#FFFFCC; height: 100%; width: 100%;">
<center><p valign="middle">Please wait while page loads...</p></center></div>
Hope that's of some use.
-
Jan 29th, 2002, 10:27 AM
#4
Thread Starter
-= B u g S l a y e r =-
-
Jan 29th, 2002, 01:20 PM
#5
-
Jan 29th, 2002, 02:46 PM
#6
Thread Starter
-= B u g S l a y e r =-
*sqwiaojifunelnkr* <-- peet getting spade for Danial !
go do some digging man!
-
Jan 29th, 2002, 03:29 PM
#7
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Jan 30th, 2002, 01:48 AM
#8
Fanatic Member
Originally posted by Danial
Actually it is very possible . You can do a true progress bar[showing actual progress] using asp, i have seen it in various web sites, but never actually used it. If any one really really wants it then i will dig it up.
Danial
can ASP be run client-side or something?? am i totally on the wrong track or what ??
-
Jan 30th, 2002, 06:57 AM
#9
Originally posted by ubunreal69
can ASP be run client-side or something?? am i totally on the wrong track or what ??
No asp cant be run on client side, its a server side technology. Have a look the code i posted you will get some idea.
The progressbar works something like this, first time it calls the search function, and then on if you call that same file again. instead of intiating the search sequence again, it gets the progress stage of the ongoing search event and constructs the progressbar and sends back to the client. I have only gone through the code briefly but thats my understing.
Hope it clears out your question.
Danial
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Jan 31st, 2002, 03:59 AM
#10
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|