PDA

View Full Version : ajax shoutbox



Colin-Roberts
27-03-2007, 08:50 PM
anyone know any good tutorials for one or anything/
anyway i decideded to refrace what i need is there anyway to refresh a page every so often using ajax.
like it updates every 10 seconds instead of doing the whole page refresh every time
i know you can do it when a new shout is added so i assume you can do it every so often

Jamie.
28-03-2007, 11:25 AM
but wat if u type something and it disappears when it refreshes, thats the only problem i cud thing of if it refreshes every ten seconds :P

Drompo
28-03-2007, 11:26 AM
Just have the chat in one iframe and have the form in the other, make the chat i frame refresh every 10 seconds

Awfy
28-03-2007, 11:34 AM
Use a META to fresh it.

<meta http-equiv="Refresh" content="10; URL=LINK.php"/>

Luckyrare
28-03-2007, 03:39 PM
Very easy use script.aculo.us

Colin-Roberts
28-03-2007, 07:45 PM
all the people that said the iframe thing thats annoying when it refreshes and thanx lucky

timROGERS
28-03-2007, 07:58 PM
There's a tutorial in the Javascript section on Techtuts.

Hypertext
28-03-2007, 09:08 PM
Ask Invent!
He knows Ajax.. like the back of his head.. no very well ;/ jk.. he knows it well.

Mentor
29-03-2007, 06:45 PM
Well with a basic js knowlage, i think this tutoral is really all you need to know for a basic script, its the only tutoral ive ever really read on the subject fully, and its served me fine, dispite being a tiny one.

http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJAX-Tutorial.html

Want to hide these adverts? Register an account for free!