i need to create a chat application in php+js+ajax which need to be integrated to a site, where am stuck is to create a chat window , that need to be constant while going through different pages in the site . if any one can suggest a better way i will be grateful, thanks in advance
A:
There are plenty of tutorials available, try one of these three that came up first from a Google search for "php chat tutorial":
Tatu Ulmanen
2010-01-13 07:14:44
+2
A:
As far as the chat window staying when you change pages, I can think of three options:
- Put the chat in a separate frame and only change the main frame when going to a new page.
- Change the page content with AJAX instead of making a full page reload.
- Assuming the chat messages are being stored on the server, simply repopulate the chat with the most recent messages after the new page loads.
Jimmy Cuadra
2010-01-13 07:19:58
A:
As for the actual chat application...
Using some kind of technology to push data from the server -> your users is the best way to achieve a real-time chat application.
I would highly recommend checking out APE (Ajax Push Engine).
It takes care of the server-side stuff and allows you to seamlessly transfer data from the server -> client.
Derek Adair
2010-01-13 07:23:13
lol why would this answer get a -1?
Derek Adair
2010-01-13 15:58:52