Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts

    A project I'd like to do - Instant messaging system.

    Hey, I'd like to do an Instant Messaging system using asp and javascript.
    I need some advices of how to begin this project.
    I need somehow to use the javascript as a server-side because it needs to get information instantly from other users (I know it's impossible because javascript is client-side.).
    How can I get information from the other user I'm chatting with instantly?

  • #2
    Regular Coder mic2100's Avatar
    Join Date
    Feb 2006
    Location
    Scunthorpe
    Posts
    562
    Thanks
    15
    Thanked 28 Times in 27 Posts
    what you could do i load it into a db...

    example

    field 1 = id (autonumber)
    field 2 = message
    field 3 = from
    field 4 = to
    field 5 = received (1 or 0)

    you could then use AJAX scripts to look at the db every 5-10 seconds to see if there is any new messages for a specific user if so download them and display them onscreen. There are examples of AJAX instant messenger out there so i would go and have a look at how they work and decide for yourself.

  • #3
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    Oh, Thanks. That's a nice idea.
    It doesn't really feet a real chat because in a real chat nothing saves the conversations and it would be kind of complicated to do it with rooms and private messages, don't you think?
    Is there any other way of doing that?

  • #4
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    Any other ideas? Does anyone know how msn,aim,icq,or any other instant messaging program works? If someone could get me an explanation page about that, it would be great!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •