I'm trying to create a webchat in PHP as a schoolproject. I want the messagedialog to update automaticly. I need like a thread or something but I don't know what to use. How can i keep loading the page on the client-side so new messages can be added until he leaves the chat. I don't want to use a refresh or update button!
How about some javascript that reloads the page automatically every X seconds?
<META HTTP-EQUIV="Refresh" CONTENT="7">
put it between the <HEAD> and </HEAD>
-dr
The only problem then is that you have a chat-dialog page that "blinks" each time it refreshes... I've seen chat pages where the page never stops loading so new messages are added as they are submitted by the other users.
That was most likely a Java class.