raulgaitan Posted November 29, 2008 Share Posted November 29, 2008 Hi thr, I'm new in the forum and my question is as follows: I've a shoutbox script written in PHP which mainly consists in 4 files (there're like 20 files more but they're for other things like users management). The files are: Ftag.php <- This is the box where you login and write the message, it has an iframe to tag.php that refreshes every 10 secs. Tag.php <- This one shows the messages in a table, showng users, a personal message and the message. Procesar.php <- This one catches the post from ftag.php and introduces it to the db. Conectar.php <- This ones holds the mysql connection data... You can see the shout box here: http://smcb.themixure.com What I want is to replace using the iframe to tag.php and use ajax instead and that for example, when you type a new message it appears without "reloading" as in an iframe and when other users type their messages it appears inmediately (I know it won't be real-time, but I read that with ajax you can check if there's a new message and you can do it every 1 sec, if there's a new message it automatically adds it to the table).. And also, the tag.php shows only 15 messages. If you want I can send to you the complete shoutbox system. I really know nothing about ajax and would thank your help. Regards, Raul. Sorry for my eng, I speak spanish. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.