English 中文(简体)
自动将服务器的信息传送到圆顶
原标题:automatically appending messages from server to the div tag

我正试图汇集一个简单的原型:

  • page with a text field and an empty div tag
  • same above page opened in two browser windows
  • Browser 1 - user A types something in the text field and presses enter
  • Browser 2 - user B, without refreshing the page, sees what user A typed

我知道会使用AJAX,但我正在寻求详细的解决办法。 j 质量? WebSocket? NodeJS?

如果我使用j Query,我就不得不定期向服务器提出要求,看看是否有任何新信息,而不是我想要立即这样做。

are 共同提交文件的例子大致如此?

问题回答

页: 1 http://www.ajaxwith.com/Reverse-Ajax-Technique.html”rel=“nofollow”Reverse Ajax Technique

无法从发送到客户的服务器立即收到通知,因为“吉大港”项目连接只从客户建立到服务器,即使客户仍然活着,客户必须首先提出要求,这意味着你需要定期检查,了解是否有最新情况。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签