| Author |
Topic Search Topic Options
|
davidshq
Senior Member
Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
Topic: The ASP Chat Script Problem. 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
|
 |
pmormr
Senior Member
Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2003 at 5:00pm |
|
|
|
|
 |
fernan82
Mod Builder Group
Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
pmormr
Senior Member
Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
|
Post Options
Thanks(0)
Quote Reply
Posted: 07 December 2003 at 12:35pm |
you'd be getting lots of "TOO MANY CONNECTIONS" errors
|
|
|
 |
davidshq
Senior Member
Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
fernan82
Mod Builder Group
Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
davidshq
Senior Member
Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 December 2003 at 12:09pm |
I'll look into ConquerChat and get back to you. :-)
Respectfully,
David.
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 December 2003 at 12:14pm |
|
I made one using flash and asp.net you could easier make one in flash + asp.
|
 |