Jump to content

Apply ajax in my own shoutbox


raulgaitan

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/134797-apply-ajax-in-my-own-shoutbox/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.