Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2004, 01:39 AM
Authorized User
 
Join Date: Aug 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can i do Chat Application?

Hi,
I have to develop chat application in ASP.
How can i manage it...
Is there any database concept involve it.
If possible please give me some help code.

Advance thanks
~Storage
 
Old September 13th, 2004, 01:54 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear Storage
you can get the code of chatt in ASP from
http://www.codeproject.com/asp/PalaceChat.asp

Hope it works fine for you

(*_*)


Numan
--------------------------------------------------
Love is the most precious thing of this world. So find it and grab it!
 
Old September 13th, 2004, 09:31 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Some years back, I have created a chat application. I can give you details of it.

There was a page with 3 frames. #1 will show a form. #2 will show all the messages of current chat #3 will show the status, howmany members link to details of members etc.

I was using a database just to record the messages and help admin to check them and delete them. A simple chat can use just application object. No need of any database.

The most difficult problem I faced was how to post a new message immediately to the screens of other participants. For this, we should be able to raise an event on client browsers from server. This is not possible however. So I was polling the server at regular intervals to check whether any participant posted a new comment. This was done at a regular intervals of 20 seconds. This polling was done with the help of a page with a meta refresh tag.

The other difficulty was to intimate a person when an other person invites him. Again polling based on meta refresh was used by me.

I do not consider this to be a good method. It will load the server unnecessarily. Not all browsers will support meta refresh. And this does not seem to be a professional method also.

There should be someway to read a port on client machines through browser. Then there should be some method for server to write something to client machine port. Then this can be done successfully. However a extended search for such features for over a year did not produce any result. Finally I reached a conclusion that chats cannot be successfully built with browsers, ASP and JS alone.

I re-did chat tool with VB and winsock component. It was meant for intranet alone.

I am telling this not to deject you. My browser based chat tool was working but making our server crash every hour.

May be somebody tell us a way to read a port on client machine through browser. Also to write something to appropriate client browser when some relevant events (new user joins, a member posts a message) happens.





Similar Threads
Thread Thread Starter Forum Replies Last Post
chat application krishna_krrish .NET Framework 1.x 0 August 14th, 2006 12:40 PM
want help(chat application) amitjava J2EE 3 September 27th, 2004 03:20 AM
Chat Application sachindhillan Classic ASP Basics 2 August 10th, 2004 12:32 AM
Chat Application uxi ASP.NET 1.0 and 1.1 Professional 1 October 1st, 2003 08:39 AM
Chat Application uxi ASP.NET 1.0 and 1.1 Basics 0 October 1st, 2003 06:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.