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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.