472,985 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,985 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 1523
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.