是否有实时Web应用程序这样的东西? [英] Is there such a thing as a Real-time Web Application?

查看:63
本文介绍了是否有实时Web应用程序这样的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的意思是,我希望我的Web客户端能够实时更新。


场景是我有一个异步更新的数据库,并且

更新发生时我想通知我的网络客户端,以便他们

可以显示新信息。这一定是推动而不是拉动,所以我不想在客户端使用计时器。


有没有办法这样做吗?


TIA


Charles

What I mean is, I want my web client to be updated in real-time.

The scenario is that I have a database that is updated asynchronously, and
when the update takes place I want to ''notify'' my web clients so that they
can display new information. This must be a push rather than a pull, so I
don''t want to use a timer on the client.

Is there a way to do this?

TIA

Charles

推荐答案

您需要在您的客户

和Web服务器之间建立某种形式的持续连接,特别是像

网站这样的无状态环境中的问题。您可以考虑使用applet或activex控件

连接到套接字服务器,让套接字服务器监视数据库,当数据库更新发生时,它可以告诉它通过您的小程序连接客户

更新已经发生。


-

问候


John Timney

Microsoft MVP


" Charles Law" < BL *** @ nowhere.com>在消息中写道

新闻:eb ************** @ TK2MSFTNGP04.phx.gbl ...
You will need to have some form of constant connection between your client
and the web server, typcially an issue in a stateless environment like the
web. You could probably think about using an applet or activex control
connected to a socket server, let the socket server monitor the DB and when
the DB update occurs it can tell its connected clients via your applet that
the update has occured.

--
Regards

John Timney
Microsoft MVP

"Charles Law" <bl***@nowhere.com> wrote in message
news:eb**************@TK2MSFTNGP04.phx.gbl...
我的意思是,我希望我的Web客户端能够实时更新。

情况是我有一个异步更新的数据库,并且当更新发生时我想要''通知''我的网络客户端,以便他们
可以显示新信息。这必须是推动而不是拉动,所以我不想在客户端使用计时器。

有没有办法做到这一点?

TIA

Charles
What I mean is, I want my web client to be updated in real-time.

The scenario is that I have a database that is updated asynchronously, and
when the update takes place I want to ''notify'' my web clients so that they
can display new information. This must be a push rather than a pull, so I
don''t want to use a timer on the client.

Is there a way to do this?

TIA

Charles



2006年5月2日星期二12:43:48 +0100, 查尔斯劳 < bl *** @ nowhere.com>

写道:
On Tue, 2 May 2006 12:43:48 +0100, "Charles Law" <bl***@nowhere.com>
wrote:
我的意思是,我希望我的网络客户端能够实时更新。

情况是我有一个异步更新的数据库,并且当更新发生时我想通知我的网络客户端以便他们
可以显示新信息。这必须是推动而不是拉动,所以我不想在客户端上使用计时器。
What I mean is, I want my web client to be updated in real-time.

The scenario is that I have a database that is updated asynchronously, and
when the update takes place I want to ''notify'' my web clients so that they
can display new information. This must be a push rather than a pull, so I
don''t want to use a timer on the client.




Web应用程序是无连接的。无法推动,因为Web服务器无法将某些东西推送给特定的客户端。


您要求的可能是最好用

XMLHTTP完成。无论数据是否发生变化,返回一个表示

的布尔值都很容易。当他们有,你也可以使用

相同的方法只更新已经改变了

的那部分页面。


Jim Cheshire

博客: http://blogs.msdn.com / jamesche



Web applications are connectionless. There cannot be a push because
the Web server has no way to push something to a specific client.

What you''re asking for would probably be best accomplished using
XMLHTTP. It would be easy enough to return a Boolean indicating
whether or not data have changed. When they have, you could also use
the same method to update only that portion of the page that has
changed.

Jim Cheshire
Blog: http://blogs.msdn.com/jamesche


Charles,


你在月球上待了一段时间。

http://atlas.asp.net/Default .aspx?tabid = 47


你甚至应该从那个地方看过它。


Cor

Charles Law < BL *** @ nowhere.com> schreef in bericht

新闻:eb ************** @ TK2MSFTNGP04.phx.gbl ...
Charles,

You was a while on the moon.

http://atlas.asp.net/Default.aspx?tabid=47

You should even have seen it from that place.

Cor
"Charles Law" <bl***@nowhere.com> schreef in bericht
news:eb**************@TK2MSFTNGP04.phx.gbl...
我的意思是,我希望我的Web客户端能够实时更新。

情况是我有一个异步更新的数据库,并且当更新发生时我想要''通知''我的网络客户端,以便他们
可以显示新信息。这必须是推动而不是拉动,所以我不想在客户端使用计时器。

有没有办法做到这一点?
< TIA

Charles
What I mean is, I want my web client to be updated in real-time.

The scenario is that I have a database that is updated asynchronously, and
when the update takes place I want to ''notify'' my web clients so that they
can display new information. This must be a push rather than a pull, so I
don''t want to use a timer on the client.

Is there a way to do this?

TIA

Charles



这篇关于是否有实时Web应用程序这样的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆