MyBB Community Forums

Full Version: Auto refresh part of a page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
May peace be upon eveyone here.
I don't know whether it is the correct place to ask this.

I have ads on my blog and i want them to auto refresh every minute without the whole page being loaded everytime.
Let say
Quote:<script>adsexample</script>
is the code of the ad
With what html code should i wrap the ad code so that the ads auto refreshes every minute without the whole page being loaded?
Thanks
Regards
That is something only AJAX can do (I believe).
Place this after your <head> tag, and before </head>
<meta http-equiv="refresh" content="10; url=http://www.redirecturl.com">
But only on the page you want to refresh every 10 seconds..
He said part of site though. I believe that means a element on the page.
You can either use AJAX or you can use iframe. Although AJAX would be your best bet. Read up on it. Or view MyBB source.
any links or tutorial? i cannot seem to find one Sad