I've been searching for several days for hours at a time for a genuinely useful tutorial on how to create a chat (shoutbox) script with PHP and JavaScript.

I'm looking for something that is as simple as is possible--no message filters, no databases, no multiple chatrooms or online user list or special user functions or login/registration system or even smiley faces.

Does anyone know of a tutorial that actually teaches only the concept?

    If you're only looking for the concept....

    1.) How will you store what was said between those users that are connected to the service? Some type of backend is required. A database would be easiest.

    2.) You'll need to have your ajax script call a php script to save what each user said.

    3.) After saving, you'd have to either (1) run a new request to get an update or (2) return the update after saving what the user said.

    4.) When you get the response, update the view of the chat screen.

    That's about it.

      bpat1434;10896009 wrote:

      If you're only looking for the concept....

      1.) How will you store what was said between those users that are connected to the service? Some type of backend is required. A database would be easiest.

      2.) You'll need to have your ajax script call a php script to save what each user said.

      3.) After saving, you'd have to either (1) run a new request to get an update or (2) return the update after saving what the user said.

      4.) When you get the response, update the view of the chat screen.

      That's about it.

      Yeah, thanks. I got that, I'm just not good at AJAX (no skill in JavaScript OR XML yet). But I found something that I think will work for me, thanks.

        Write a Reply...