Print Page | Close Window

The ASP Chat Script Problem.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7889
Printed Date: 01 April 2026 at 1:14am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: The ASP Chat Script Problem.
Posted By: davidshq
Subject: The ASP Chat Script Problem.
Date Posted: 05 December 2003 at 4:33pm

Hi,
  I'd like to start a little discussion amongst ASP programmers concerning the problem of programming a decent chat program in ASP.
  Here is the basic problem I have seen in all ASP chat programs:
Enter later and the text from earlier is still there.
  My question is - Is there any way to fix this?
Here's my idea:
Have the chat program enter text into a database, one field keeps a record of all the chat text (for chat records), the other of each individual user along with a time stamp. When that individual logs out the script checks to see if anyone else is present in the room, if not it clears the text. If another person is in the room it adds a ID number of the chat text entered by the leaving individual to another person in the room...When that person leaves it checks again, if another person is present it gives all the ID numbers + that individuals to this next individual, and so on. When the last person finally leaves all the ID numbers are in that persons variable (e.g. txttowipe) and all the text is wiped.
The problem with this is - could Access handle this or only SQL? If Access couldn't - could it if the database was compacted and repaired upon the last departure of an individual?
Respectfully,
David Mackey.
- www.civilwarsearch.com




Replies:
Posted By: pmormr
Date Posted: 05 December 2003 at 5:00pm

say what? http://www.conquerchat.com -



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: fernan82
Date Posted: 06 December 2003 at 3:48pm
Any descent HTTP based chat would require a dedicated server to run well if it's gonna be busy at all, whether you use a database (access won't do!) or session variables or whatever. Chat's like ConquerChat can be moded so it only shows new lines since you got in without using a database.

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: pmormr
Date Posted: 07 December 2003 at 12:35pm

you'd be getting lots of "TOO MANY CONNECTIONS" errors



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: davidshq
Date Posted: 12 December 2003 at 11:25am

Hmmm...So, so far it is not looking very hopeful for the design of a professional ASP chat room script. Does anyone have any recommendations on how one could be made?
The traditional way of posting text to a HTML file appears to be sinking b/c if a lot of traffic were to come through bandwidth would be unreasonable because of the constant refresh rate...
The way of the database also appears to be sinking because of the fact that there can only be so many simultaneous connections to the database...
Any other recommendations?
Respectfully,
David.



Posted By: fernan82
Date Posted: 12 December 2003 at 12:05pm
You can't make a "professional" chat with ASP.

To get around the bandwith problem and flickering you use a hidden frame with about 10 hidden fields, refresh that frame every second or so and populate the main frame with javascript.

The best ASP chat there is is ConquerChat, you can't really make it much better than than that, so why waste your time reinventing something that already exists.?


-------------
FeRnAN
http://www.danasoft.com/">


Posted By: davidshq
Date Posted: 12 December 2003 at 12:09pm

I'll look into ConquerChat and get back to you. :-)

Respectfully,

David.



Posted By: Mart
Date Posted: 12 December 2003 at 12:14pm
I made one using flash and asp.net you could easier make one in flash + asp.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net