Okay, so here's a quick rundown: I designed a chat system about 5 years ago and I've got it all tweaked and performing pretty good these days. I'm constantly adding new features and whatnot and I have one now that I simply can't seem to figure out.
In that chatroom, the user has two choices with how he/she wants to enter: frames or no frames.
No frames mode is just a simple one page deal where pressing the "send" button displays all the new messages or if he/she input a message, it places it along with the others.
Frames version runs pretty much the same way, only the top frame has a "reload" button that displays the messages whereas the bottom frame is where the input box is.
Now, on to my problem: I want to create a third version called "Streaming". Basically, this version will work the same as frames mode except there will be no need for the "reload" button in the top frame: the page will 'stay alive' somehow and print the new messages as they are received by the mySQL database, automatically.
I've played around with flush() and I've also done some investigation of maybe using httprequest and AJAX but I'm not very familiar with either method and I've grinded to a hault in my quest to pull this off.
Does anyone have any ideas/methods/suggestions/examples?