Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - The ASP Chat Script Problem.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The ASP Chat Script Problem.

 Post Reply Post Reply
Author
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2003 at 5:00pm

say what?

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 12:35pm

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

Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2003 at 12:09pm

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

Respectfully,

David.

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2003 at 12:14pm
I made one using flash and asp.net you could easier make one in flash + asp.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.