[REQ] Refreshing a DIV with AJ

Posted on Sunday 10th February 2008 at 04:28 PM
Thomas
Thomas's Avatar
I have seen things like shoutbox's and stuff that refresh using iframes ect.

But, I would like something like a div reloads so the user doesn't know its reloading in the background, it would be alot better than making an iframe do it, as I think alot of people hate that.

Cheers for any help given about the issue. :)
Posted on Thursday 26th June 2008 at 12:18 PM
ilyas-shezad
ilyas-shezad's Avatar
Yup its possible look at my ajax chat tutorial.
I use the javascript function...
Code
setInterval("functiontorun()", 2000);


so it'll run a certain function (u can do a ajax function) every 2 seconds i think the above one does.
The second parameter is basically how often u want the first parameter to run. soooo i have it set to 2 seconds which means functiontorun() will run on the page every 2 seconds.
PHP-MYSQL-JAVASCRIPT-ACTIONSCRIPT-CSS-HTML
Making tutorials for flash, php and javascript
Login or register to respond to this forum topic.