By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

Streaming data to the client whilst allowing the client to work

P: n/a
Hi all,

I have an (well, what I think to be, at least) interesting question:
Is it possible to stream data down to the client and, after a certain amount
of data has been streamed, allow the client to begin interacting with that
data whilst still streaming data down?

Also, if it is possible, how would one go about coding this? Would some sort
of predfined bit of streaming be finished and notify the client (i.e. some
form of Javascript call after each section of streaming has completed)

Could someone please send me either some coding examples to begin with as a
starter or, more importantly, a few links to sites that have successfully
implemented this?

Thanks a lot in advance

Regards
John.
Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Basicaly, streaming is not something we do in a web situation.
The server provide static version of pages wich are then shown to the
user by a browser..

I often see the web like a printer. You can manipulate the source, but
once it's printed.. it's over. If you want to move something, you have
to redo the source.

But if you're ready to read and do some research.. start by looking for
XmlHTTP and how it's used.

You may find this
(http://support.microsoft.com/default...b;en-us;893659)
article -pretty- interesting.

Nov 19 '05 #2

P: n/a
"John" <a@b.com> wrote in news:ux**************@TK2MSFTNGP11.phx.gbl:
I have an (well, what I think to be, at least) interesting question:
Is it possible to stream data down to the client and, after a certain
amount of data has been streamed, allow the client to begin
interacting with that data whilst still streaming data down?


Yes... it's called AJAX, Javascript Remoting, or Client Side Callbacks.

: )

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #3

P: n/a
oh yes

you can bodge up callbacks

by coding an img element to load a new image
passing parameters in the url

voila!

two way communication!

watch out if you are using single threaded session object though
cos you won't get the requests

it is the same technique spammers use to determine if your email
is real

<img src="http://sp**********************@ms.com" width="0"
height="0"/>

that is why preview pane in outlook is fraught with danger!
as soon as the email is previewed they know a human looked at it
John wrote:
Hi all,

I have an (well, what I think to be, at least) interesting question:
Is it possible to stream data down to the client and, after a certain amount
of data has been streamed, allow the client to begin interacting with that
data whilst still streaming data down?

Also, if it is possible, how would one go about coding this? Would some sort
of predfined bit of streaming be finished and notify the client (i.e. some
form of Javascript call after each section of streaming has completed)

Could someone please send me either some coding examples to begin with as a
starter or, more importantly, a few links to sites that have successfully
implemented this?

Thanks a lot in advance

Regards
John.


Nov 19 '05 #4

P: n/a
Mathlec/Lucas Tam - thanks a lot!

Let the reading begin...

"John" <a@b.com> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
Hi all,

I have an (well, what I think to be, at least) interesting question:
Is it possible to stream data down to the client and, after a certain
amount of data has been streamed, allow the client to begin interacting
with that data whilst still streaming data down?

Also, if it is possible, how would one go about coding this? Would some
sort of predfined bit of streaming be finished and notify the client (i.e.
some form of Javascript call after each section of streaming has
completed)

Could someone please send me either some coding examples to begin with as
a starter or, more importantly, a few links to sites that have
successfully implemented this?

Thanks a lot in advance

Regards
John.

Nov 19 '05 #5

P: n/a
One simple technique I have used (first saw it in gifwizard.com in
1994)
is to output the html page to the browser

then open a
<script language="javascript">

and now you can keep streaming javascript commands
which can interact with dhtml dom and do anything

gifwizard used it to update a statusbar

<table id="statusBar" style="width:0px;" bgcolor="#ff0000">
<tr>
<td></td>
</tr>
<table>

statusBar.style.width = 10; //or something
statusBar.style.width = 20; //or something
statusBar.style.width = 30; //or something
etc.

although i usually use functions with very small names
like "s(1);" to keep the stream small

as long as you don't response.end the client will
keep an http connection open for a very long time
indeed

you can even clear the document and send
a new page if you want ... it works fine

obviously it might stress out the client
if the stream becomes too big over time!

hope that helps
John wrote:
Hi all,

I have an (well, what I think to be, at least) interesting question:
Is it possible to stream data down to the client and, after a certain amount
of data has been streamed, allow the client to begin interacting with that
data whilst still streaming data down?

Also, if it is possible, how would one go about coding this? Would some sort
of predfined bit of streaming be finished and notify the client (i.e. some
form of Javascript call after each section of streaming has completed)

Could someone please send me either some coding examples to begin with as a
starter or, more importantly, a few links to sites that have successfully
implemented this?

Thanks a lot in advance

Regards
John.


Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.