2431Shoutbox tutorialhttp://www.toxiclab.org/tutorial.asp?ID=41Shoutbox works on this principle: a visitor writes a name and a message, over a form.
Then all gets proceeded on to the page where we write all of the data down in the database.
After that we return on to the page where we have form for the inscription and where we can view shoutbox messages.ASP > Tips and Tutorials > Chat ScriptsOct 10, 2006Toxiclab
Shoutbox works on this principle: a visitor writes a name and a message, over a form.
Then all gets proceeded on to the page where we write all of the data down in the database.
After that we return on to the page where we have form for the inscription and where we can view shoutbox messages.
create a simple form where the user can type some text. Whatever the client types in this form has to be appended to a text file, this text file will then be displayed to the client. The actual writing to the text file is done with an Active Server Script.
Using this chat system, we can chat how we conventionally chat, in public as well as private modes. Even though I've implemented most of the conventional features such as unique nick names, the reader is welcome to incorporate any other features they require. Please note that I didn't worry much about memory usage on the server side and the code that allots user ids obviously needs improvement.
Let us talk about the overall functionality. The message from the browser is sent to the server via Microsoft's XMLHTTP Object. Using this same XMLHTTP Object, the messages are retrieved from the server and displayed on the page. The users list comes from the server along with messages. It is currently configured so that the browser requests the current users list from the server every 5 seconds.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.