B
Brett
Say I have a chat page. The bottom has a FORM text box with send button.
The middle and upper part of this page display the chat text. A user
submits their chat text and sees it displayed in the chat area. The text
goes into a database and then is output into the chat area. I need
something to check the database for new entries about every 2 seconds or so
and then display them in the chat area. I could use frames and hide the one
page that does the database INSERT and SELECT. Is there another way without
frames?
Also, is there a way to raise an event when a new message is inserted into
the database, rather than just polling it every few seconds?
Thanks,
Brett
The middle and upper part of this page display the chat text. A user
submits their chat text and sees it displayed in the chat area. The text
goes into a database and then is output into the chat area. I need
something to check the database for new entries about every 2 seconds or so
and then display them in the chat area. I could use frames and hide the one
page that does the database INSERT and SELECT. Is there another way without
frames?
Also, is there a way to raise an event when a new message is inserted into
the database, rather than just polling it every few seconds?
Thanks,
Brett