473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Streaming data to the client whilst allowing the client to work

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
5 1544
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Larry Woods | last post by:
Could you give me an example of streaming a page to the client? Thanks. Larry Woods
1
by: WildHare | last post by:
What exactly is streaming? When I use a browser or an application and it gets streaming data (say, Headlines, Stock Quotes, etc), what is it really doing. Is it just that the client is constantly...
6
by: David J Rose | last post by:
I am having trouble allowing a user to drag an item, whilst also allowing them to click the item. I am using mousedown, mousemove and mouseup. It works if I click the button carefully, but if there...
6
by: | last post by:
Hi all, is there a better way to stream binary data stored in a table in sql 2005 to a browser in .net 2.0? Or is the code same as in .net 1.1? We noticed that in certain heavy load scenarios,...
3
by: Vijay | last post by:
Hi Folks, I having one issue, in my application I am going to use the server push for streaming the data by keeping the connection open. At client side, i am having the XMhttprequest object (i.e...
5
by: Manuel Alves | last post by:
Hi, Is it possible to store media files (like windows .wmv) on SQL Server 2005 and stream it back to the client via media server (not just download it)? Regards, Manuel Alves
5
by: pmakoi | last post by:
dear all this might be a piece of cake for some of you out there but it is causing me a lot of stress given the fact that there is not enogh documentation out there regarding this topic I am...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
2
by: Bubbs | last post by:
hi, Lemme give u a little background on my problem. Ive created a client and server applications that receive and stream live time values. The client software is a clock that receives the time and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.