Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Overwriting "Please wait" after long process

Reply
Thread Tools

Overwriting "Please wait" after long process

 
 
p byers
Guest
Posts: n/a
 
      12-20-2009
I once used some script in a Classic Active Server Page that instantly
sent a message to the client saying something like:

"Please wait - this will take a while"


Then when the processing was complete, the results overwrote that
message.


Please remind me how to do it

Pete (Northolt UK)

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      12-20-2009
p byers wrote on 20 dec 2009 in microsoft.public.inetserver.asp.general:

> I once used some script in a Classic Active Server Page that instantly
> sent a message to the client saying something like:
>
> "Please wait - this will take a while"
>
>
> Then when the processing was complete, the results overwrote that
> message.
>
>
> Please remind me how to do it


You cannot send messages to the client,
the client haas to ask for information.

Such servitude is the plight a server.

However the client page can use Ajax like techniques to ask,
using clientside code and ask this asp page:

<%
response.expires = -100
if session("buzy") then
response.write "Please wait - this will take a while"
end if
%>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a
 
      12-20-2009
p byers <> wrote:

>I once used some script in a Classic Active Server Page that instantly
>sent a message to the client saying something like:
>
>"Please wait - this will take a while"
>
>Then when the processing was complete, the results overwrote that
>message.
>
>Please remind me how to do it


Response.Buffer=false

Causes anything generated by the ASP page code to be immediately sent
to the client, instead of being held until the entire page has been
created.

--
Tim Slattery

http://members.cox.net/slatteryt
 
Reply With Quote
 
p byers
Guest
Posts: n/a
 
      12-20-2009
I almost cracked it starting from scratch !!

Look at http://www.byershostingpeter.co.uk/test/buffering.htm for the
script


then at http://www.byershostingpeter.co.uk/test/buffering.asp to see it
work



Sadly, it does not work First time - but if you refresh, then it does !!

I will crack that though !!


Just thought I would demonstrate it to you - I did not explain very well
in my original post !!

Pete (Northolt UK)



 
Reply With Quote
 
p byers
Guest
Posts: n/a
 
      12-20-2009
I almost cracked it starting from scratch !!

Look at http://www.byershostingpeter.co.uk/test/buffering.htm for the
script


then at http://www.byershostingpeter.co.uk/test/buffering.asp to see it
work



Sadly, it does not work First time - but if you refresh, then it does !!

I will crack that though !!


Just thought I would demonstrate it to you - I did not explain very well
in my original post !!

Pete (Northolt UK)



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having compilation error: no match for call to ‘(const __gnu_cxx::hash<long long int>) (const long long int&)’ veryhotsausage C++ 1 07-04-2008 05:41 PM
Use of Long and Long Long Bart C C Programming 27 01-15-2008 05:27 AM
long long and long Mathieu Dutour C Programming 4 07-24-2007 11:15 AM
unsigned long long int to long double Daniel Rudy C Programming 5 09-20-2005 02:37 AM
Assigning unsigned long to unsigned long long George Marsaglia C Programming 1 07-08-2003 05:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57