sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Larry Woods's Avatar

Example of Streaming response to client???


Question posted by: Larry Woods (Guest) on July 19th, 2005 06:35 AM
Could you give me an example of streaming a page to the client?

Thanks.

Larry Woods


7 Answers Posted
Curt_C [MVP]'s Avatar
Guest - n/a Posts
#2: Re: Example of Streaming response to client???

here ya go
http://www.darkfalz.com/1098/


--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Larry Woods" <larry@lwoods.com> wrote in message
news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...[color=blue]
> Could you give me an example of streaming a page to the client?
>
> Thanks.
>
> Larry Woods
>
>[/color]


Larry Woods's Avatar
Guest - n/a Posts
#3: Re: Example of Streaming response to client???

Curt,

Thanks for the quick response but I don't think that is what I am looking
for. My situation is that I am generating data verrrry sloooowly on the
server and I want the client to see the data as it is being created (i.e.,
streamed), instead of waiting until all of the data is generated.

Larry Woods

"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:u2%2360izRDHA.2228@tk2msftngp13.phx.gbl...[color=blue]
> here ya go
> http://www.darkfalz.com/1098/
>
>
> --
> ----------------------------------------------------------
> Curt Christianson (Software_AT_Darkfalz.Com)
> Owner/Lead Designer, DF-Software
> http://www.Darkfalz.com
> ---------------------------------------------------------
> ..Offering free scripts & code snippits for everyone...
> ---------------------------------------------------------
>
> "Larry Woods" <larry@lwoods.com> wrote in message
> news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...[color=green]
> > Could you give me an example of streaming a page to the client?
> >
> > Thanks.
> >
> > Larry Woods
> >
> >[/color]
>
>[/color]


MN's Avatar
Guest - n/a Posts
#4: Re: Example of Streaming response to client???

"Larry Woods" <larry@lwoods.com> wrote in message news:<O7LGGj2RDHA.3192@TK2MSFTNGP10.phx.gbl>...[color=blue]
> Curt,
>
> Thanks for the quick response but I don't think that is what I am looking
> for. My situation is that I am generating data verrrry sloooowly on the
> server and I want the client to see the data as it is being created (i.e.,
> streamed), instead of waiting until all of the data is generated.
>
> Larry Woods
>
> "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> news:u2%2360izRDHA.2228@tk2msftngp13.phx.gbl...[color=green]
> > here ya go
> > http://www.darkfalz.com/1098/
> >
> >
> > --
> > ----------------------------------------------------------
> > Curt Christianson (Software_AT_Darkfalz.Com)
> > Owner/Lead Designer, DF-Software
> > http://www.Darkfalz.com
> > ---------------------------------------------------------
> > ..Offering free scripts & code snippits for everyone...
> > ---------------------------------------------------------
> >
> > "Larry Woods" <larry@lwoods.com> wrote in message
> > news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Could you give me an example of streaming a page to the client?
> > >
> > > Thanks.
> > >
> > > Larry Woods
> > >
> > >[/color]
> >
> >[/color][/color]

At the top of your script set response.buffer = true, you can then
periodically use response.flush to send any buffered output to the
user.

Alternatively you could generate your data more quickly :)
Chris Barber's Avatar
Guest - n/a Posts
#5: Re: Example of Streaming response to client???

Interestingly enought you can use a button (<INPUT value="Progress: 10%">)
and modify the value and size during a page load by embedding javascript
calls to change the button properties.
Note that tables will not be rendered as visible until *all* the table HTML
has been streamed - if you are building a table then consider each row as a
seperate table (set padding to zero etc.) Note that the table widths may not
match unless you use explicit widths and set:

style="overflow: hidden"

Chris.

"MN" <ithedaddynah@hotmail.com> wrote in message
news:adb8f7dd.0307110717.73941992@posting.google.c om...[color=blue]
> "Larry Woods" <larry@lwoods.com> wrote in message[/color]
news:<O7LGGj2RDHA.3192@TK2MSFTNGP10.phx.gbl>...[color=blue][color=green]
> > Curt,
> >
> > Thanks for the quick response but I don't think that is what I am[/color][/color]
looking[color=blue][color=green]
> > for. My situation is that I am generating data verrrry sloooowly on the
> > server and I want the client to see the data as it is being created[/color][/color]
(i.e.,[color=blue][color=green]
> > streamed), instead of waiting until all of the data is generated.
> >
> > Larry Woods
> >
> > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> > news:u2%2360izRDHA.2228@tk2msftngp13.phx.gbl...[color=darkred]
> > > here ya go
> > > http://www.darkfalz.com/1098/
> > >
> > >
> > > --
> > > ----------------------------------------------------------
> > > Curt Christianson (Software_AT_Darkfalz.Com)
> > > Owner/Lead Designer, DF-Software
> > > http://www.Darkfalz.com
> > > ---------------------------------------------------------
> > > ..Offering free scripts & code snippits for everyone...
> > > ---------------------------------------------------------
> > >
> > > "Larry Woods" <larry@lwoods.com> wrote in message
> > > news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...
> > > > Could you give me an example of streaming a page to the client?
> > > >
> > > > Thanks.
> > > >
> > > > Larry Woods
> > > >
> > > >
> > >
> > >[/color][/color]
>
> At the top of your script set response.buffer = true, you can then
> periodically use response.flush to send any buffered output to the
> user.
>
> Alternatively you could generate your data more quickly :)[/color]


Larry Woods's Avatar
Guest - n/a Posts
#6: Re: Example of Streaming response to client???

Speed... Yeh, I know. Can't control that, though. It's coming in from
another server.

Thanks.

Larry Woods

"MN" <imthedaddynah@hotmail.com> wrote in message
news:adb8f7dd.0307110717.73941992@posting.google.c om...[color=blue]
> "Larry Woods" <larry@lwoods.com> wrote in message[/color]
news:<O7LGGj2RDHA.3192@TK2MSFTNGP10.phx.gbl>...[color=blue][color=green]
> > Curt,
> >
> > Thanks for the quick response but I don't think that is what I am[/color][/color]
looking[color=blue][color=green]
> > for. My situation is that I am generating data verrrry sloooowly on the
> > server and I want the client to see the data as it is being created[/color][/color]
(i.e.,[color=blue][color=green]
> > streamed), instead of waiting until all of the data is generated.
> >
> > Larry Woods
> >
> > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> > news:u2%2360izRDHA.2228@tk2msftngp13.phx.gbl...[color=darkred]
> > > here ya go
> > > http://www.darkfalz.com/1098/
> > >
> > >
> > > --
> > > ----------------------------------------------------------
> > > Curt Christianson (Software_AT_Darkfalz.Com)
> > > Owner/Lead Designer, DF-Software
> > > http://www.Darkfalz.com
> > > ---------------------------------------------------------
> > > ..Offering free scripts & code snippits for everyone...
> > > ---------------------------------------------------------
> > >
> > > "Larry Woods" <larry@lwoods.com> wrote in message
> > > news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...
> > > > Could you give me an example of streaming a page to the client?
> > > >
> > > > Thanks.
> > > >
> > > > Larry Woods
> > > >
> > > >
> > >
> > >[/color][/color]
>
> At the top of your script set response.buffer = true, you can then
> periodically use response.flush to send any buffered output to the
> user.
>
> Alternatively you could generate your data more quickly :)[/color]


Larry Woods's Avatar
Guest - n/a Posts
#7: Re: Example of Streaming response to client???

Thanks, Chris,

Not that I'm lazy or anything, but...could you give me a little more info on
how to implement the progress button?

Larry Woods

"Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
news:uPGtSU8RDHA.2460@TK2MSFTNGP10.phx.gbl...[color=blue]
> Interestingly enought you can use a button (<INPUT value="Progress: 10%">)
> and modify the value and size during a page load by embedding javascript
> calls to change the button properties.
> Note that tables will not be rendered as visible until *all* the table[/color]
HTML[color=blue]
> has been streamed - if you are building a table then consider each row as[/color]
a[color=blue]
> seperate table (set padding to zero etc.) Note that the table widths may[/color]
not[color=blue]
> match unless you use explicit widths and set:
>
> style="overflow: hidden"
>
> Chris.
>
> "MN" <ithedaddynah@hotmail.com> wrote in message
> news:adb8f7dd.0307110717.73941992@posting.google.c om...[color=green]
> > "Larry Woods" <larry@lwoods.com> wrote in message[/color]
> news:<O7LGGj2RDHA.3192@TK2MSFTNGP10.phx.gbl>...[color=green][color=darkred]
> > > Curt,
> > >
> > > Thanks for the quick response but I don't think that is what I am[/color][/color]
> looking[color=green][color=darkred]
> > > for. My situation is that I am generating data verrrry sloooowly on[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > server and I want the client to see the data as it is being created[/color][/color]
> (i.e.,[color=green][color=darkred]
> > > streamed), instead of waiting until all of the data is generated.
> > >
> > > Larry Woods
> > >
> > > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> > > news:u2%2360izRDHA.2228@tk2msftngp13.phx.gbl...
> > > > here ya go
> > > > http://www.darkfalz.com/1098/
> > > >
> > > >
> > > > --
> > > > ----------------------------------------------------------
> > > > Curt Christianson (Software_AT_Darkfalz.Com)
> > > > Owner/Lead Designer, DF-Software
> > > > http://www.Darkfalz.com
> > > > ---------------------------------------------------------
> > > > ..Offering free scripts & code snippits for everyone...
> > > > ---------------------------------------------------------
> > > >
> > > > "Larry Woods" <larry@lwoods.com> wrote in message
> > > > news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...
> > > > > Could you give me an example of streaming a page to the client?
> > > > >
> > > > > Thanks.
> > > > >
> > > > > Larry Woods
> > > > >
> > > > >
> > > >
> > > >[/color]
> >
> > At the top of your script set response.buffer = true, you can then
> > periodically use response.flush to send any buffered output to the
> > user.
> >
> > Alternatively you could generate your data more quickly :)[/color]
>
>[/color]


Felix Wu [MSFT]'s Avatar
Felix Wu [MSFT] July 19th, 2005 06:45 AM
Guest - n/a Posts
#8: Re: Example of Streaming response to client???

Hi Larry,

Not sure if this can help:

Javascript - progress bar
http://www.webconcerns.co.uk/javasc...progressbar.asp

Regards,

Felix Wu
========
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Larry Woods" <larry@lwoods.com>
| References: <#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl>
<u2#60izRDHA.2228@tk2msftngp13.phx.gbl>
<O7LGGj2RDHA.3192@TK2MSFTNGP10.phx.gbl>
<adb8f7dd.0307110717.73941992@posting.google.com>
<uPGtSU8RDHA.2460@TK2MSFTNGP10.phx.gbl>
| Subject: Re: Example of Streaming response to client???
| Date: Fri, 11 Jul 2003 09:40:38 -0700
| Lines: 76
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#7JV1s8RDHA.2316@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:245783
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| Thanks, Chris,
|
| Not that I'm lazy or anything, but...could you give me a little more info
on
| how to implement the progress button?
|
| Larry Woods
|
| "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
| news:uPGtSU8RDHA.2460@TK2MSFTNGP10.phx.gbl...
| > Interestingly enought you can use a button (<INPUT value="Progress:
10%">)
| > and modify the value and size during a page load by embedding javascript
| > calls to change the button properties.
| > Note that tables will not be rendered as visible until *all* the table
| HTML
| > has been streamed - if you are building a table then consider each row
as
| a
| > seperate table (set padding to zero etc.) Note that the table widths may
| not
| > match unless you use explicit widths and set:
| >
| > style="overflow: hidden"
| >
| > Chris.
| >
| > "MN" <ithedaddynah@hotmail.com> wrote in message
| > news:adb8f7dd.0307110717.73941992@posting.google.c om...
| > > "Larry Woods" <larry@lwoods.com> wrote in message
| > news:<O7LGGj2RDHA.3192@TK2MSFTNGP10.phx.gbl>...
| > > > Curt,
| > > >
| > > > Thanks for the quick response but I don't think that is what I am
| > looking
| > > > for. My situation is that I am generating data verrrry sloooowly on
| the
| > > > server and I want the client to see the data as it is being created
| > (i.e.,
| > > > streamed), instead of waiting until all of the data is generated.
| > > >
| > > > Larry Woods
| > > >
| > > > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
| > > > news:u2%2360izRDHA.2228@tk2msftngp13.phx.gbl...
| > > > > here ya go
| > > > > http://www.darkfalz.com/1098/
| > > > >
| > > > >
| > > > > --
| > > > > ----------------------------------------------------------
| > > > > Curt Christianson (Software_AT_Darkfalz.Com)
| > > > > Owner/Lead Designer, DF-Software
| > > > > http://www.Darkfalz.com
| > > > > ---------------------------------------------------------
| > > > > ..Offering free scripts & code snippits for everyone...
| > > > > ---------------------------------------------------------
| > > > >
| > > > > "Larry Woods" <larry@lwoods.com> wrote in message
| > > > > news:#z8yKwvRDHA.2196@TK2MSFTNGP11.phx.gbl...
| > > > > > Could you give me an example of streaming a page to the client?
| > > > > >
| > > > > > Thanks.
| > > > > >
| > > > > > Larry Woods
| > > > > >
| > > > > >
| > > > >
| > > > >
| > >
| > > At the top of your script set response.buffer = true, you can then
| > > periodically use response.flush to send any buffered output to the
| > > user.
| > >
| > > Alternatively you could generate your data more quickly :)
| >
| >
|
|
|

 
Not the answer you were looking for? Post your question . . .
196,991 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,991 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors