what technology may I use to update the status (in term of data) of a dynamic page without user interaction and only through TCP messages?
Asked
Active
Viewed 461 times
0
-
Can you add a bit more context and detail and what technology you are using on server side? – Pekka Apr 10 '11 at 16:27
-
May be this helps: [How can I communicate over TCP sockets from JavaScript?](http://stackoverflow.com/questions/307539/how-can-i-communicate-over-tcp-sockets-from-javascript) – Harry Joy Apr 10 '11 at 16:30
1 Answers
0
You need JavaScript on the client side (such as jQuery) making AJAX calls to a server-side application. It will return JSON-formatted data, which you can then use to update the page on the client side.
I think anything which relies on direct direct TCP communication is going to be very fragile from one user's browser to another – that's not something which browsers typically facilitate, due to security concerns.

asthasr
- 9,125
- 1
- 29
- 43
-
Thanks for the reply. If you have a component that changes frequently it's state as I can represent this status via a web page? – Luigi Menale Apr 12 '11 at 05:22
-
Well, you can represent this status using a web application. In the web page, you would have jQuery doing a poll to the web app at certain intervals -- every thirty seconds, for example. The web app would then reply, and the JavaScript could do what it needs to do with the data. – asthasr Apr 12 '11 at 12:14