Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 August 8th, 2004, 02:17 AM
Registered User
 
Join Date: Aug 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sachindhillan Send a message via MSN to sachindhillan Send a message via Yahoo to sachindhillan
Default Chat Application

i want to make a chat application in ASP 3.0, i think that i should take 3 frames, one for messege, another 1 for user and another one for writing messeges, and after some interval refresh Messege and User's frame, this is right one, or if somone have more good idea then plz help me.
Thanks
Sachin

 
Old August 8th, 2004, 12:57 PM
Authorized User
 
Join Date: Aug 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you're building this to gain some new skills or demo your work, AWESOME! If this chat room is going to be heavily used, you might want to reconsider. ASP wasn't built to handle something like this and you're going to run into a lot of problems when a lot of people start using it. Having said that, here's a few things to keep in mind:

- The most obvious way to keep track of who's in the chat room is to create a table that lists the people currently chatting. Avoid this. When a person closes their browser without logging out, their name will be stuck in the in the table and screw everything up. You're probably going to have to write some code that (a) updates a timestamp in their profile when they post, login, or refresh the chat window and then (b) tracks only users who've had activity in the last 15 minutes or so. This method does have a higher overhead cost on the server but it's still preferable to having names stuck in the 'Current Users' table indefinitely.

- Everytime you refresh the chat window it's going to have to load a lot of content. A better way to do it would be to include a hidden iFrame that refreshes and then uses JavaScript to add content using the innerHTML command. This isn't as cross-browser friendly as the simpler method, but it's faster.
If you do end up just using a single frame to load the chat content, make sure to add a bookmark at the end of the text so that people don't have to scroll down to view the new messages. Or, alternatively, you could just post the new content on top of the screen but this is counter-intuitive for most users.

- Finally, users are going to hear a click evertime the iFrame refreshes. There's no way to turn this off from your end. Either the user will have to disable it manually on their browser, or mute their speakers, otherwise the constant clicking will drive them nuts.

I hope this was helpful in some way.

Good luck on your project,

Chris

Hope this helped in some way

 
Old August 10th, 2004, 12:32 AM
Registered User
 
Join Date: Aug 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sachindhillan Send a message via MSN to sachindhillan Send a message via Yahoo to sachindhillan
Default

Thansk Chris

ur suggestion r good, i also think that ASP is better solution for like this application, i didn't work at ASP.Net, if someone worked at this can tell me that ASP.Net is better or have to use for this.
Thanks






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
How can i do Chat Application? ccc_storage Classic ASP Professional 2 September 13th, 2004 09:31 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.