Topic awaiting preservation: updating website dynamically from server (java/php/ajax) (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 10-08-2008 11:31
hello, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-08-2008 11:52
Hm... I'd suggest ajax based polling to a php script that returns the output. You just regularly do a request, see if it has any message, if so, display the message. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 10-08-2008 12:07 |
Bipolar (III) Inmate From: |
posted 10-09-2008 04:29
The issue is not with notifying the "website" but with notifying the visitors viewing the website. A user's web browser client connects to the website server, requests a document, then disconnects and shows the document to the user. While in this disconnected state, there is no way to PUSH information to the user. The user must PULL it from the website. That's where "polling" comes in. It can be done with AJAX as described. It could be done in Flash. It could be done with simple meta refresh timers. But one way or another, the user's client must initiate the conversation - the server cannot force the issue. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 10-11-2008 11:49 |
Maniac (V) Mad Scientist From: Denver, CO, USA |
posted 10-13-2008 16:24
quote:
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-13-2008 21:36
there is a technology called 'comet' that tries to achive what you want (keep connection open, the the webserver can 'push' data when/if it occurs). |