![]() Topic awaiting preservation: updating website dynamically from server (java/php/ajax) (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
![]() hello, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() 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 |
![]() |
Bipolar (III) Inmate From: |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: Denver, CO, USA |
![]() quote:
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() 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). |