javascript chat room tutorial ?!?
Moderator: General Moderators
javascript chat room tutorial ?!?
Ok, I think I've officially looked everywhere on the internet and I can't find anywhere that has a JavaScript chat room tutorial. I have found php ones but they have to update every so often and they just wont work. If anyone knows of a good tutorial that would be awsome.
Thanks,
Jr-
Thanks,
Jr-
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Hmm... webmessenger (http://webmessenger.msn.com/) uses xmlhttp doesn't it?
Also, e-messenger (http://www.e-messenger.net/) is purely JavaScript based (on the client side I mean).
The javascript part is only a small part of such an application though.
Most of the work will still have to be done on the server. The JS merely provides a plesant way to interact with the server.
Also, e-messenger (http://www.e-messenger.net/) is purely JavaScript based (on the client side I mean).
The javascript part is only a small part of such an application though.
Most of the work will still have to be done on the server. The JS merely provides a plesant way to interact with the server.
here is a little sample i made a couple of months ago...
http://timvw.madoka.be/programming/php/chat_server.txt
http://timvw.madoka.be/programming/php/chat_client.txt
http://timvw.madoka.be/programming/php/chat_dump.sql
but i don't think it's that hard to place a irc/msn/whatever backend in place of the mysql database...
http://timvw.madoka.be/programming/php/chat_server.txt
http://timvw.madoka.be/programming/php/chat_client.txt
http://timvw.madoka.be/programming/php/chat_dump.sql
but i don't think it's that hard to place a irc/msn/whatever backend in place of the mysql database...
Try this mate it is Java Powered, and is powered from their site,
Dont know if this will help at all, but is an alternitive.
http://www.parachat.com/
Dont know if this will help at all, but is an alternitive.
http://www.parachat.com/
well, you need the http://jpspan.sf.net library.
it offers you a connection between php and javascript through xmlhttprequest.
you can read up the details on that site... and try some of the examples to get a better view on the technology...
i wanted to give it a try, so i made a little shoutbox/chat name it whatever you want to name it using that library.
it comes down to writing the "server". this is the php stuff that handles the xhtmlrequest... and then i wrote a "client" that will send xmlhttp requests (and reload the chatbox if new messages are available). (imho) this gives a much smoother impression than reloading the complete page.
hth
it offers you a connection between php and javascript through xmlhttprequest.
you can read up the details on that site... and try some of the examples to get a better view on the technology...
i wanted to give it a try, so i made a little shoutbox/chat name it whatever you want to name it using that library.
it comes down to writing the "server". this is the php stuff that handles the xhtmlrequest... and then i wrote a "client" that will send xmlhttp requests (and reload the chatbox if new messages are available). (imho) this gives a much smoother impression than reloading the complete page.
hth