Posts

Showing posts with the label Refresh

An Iframe I Need To Refresh Every 30 Seconds (but Not The Whole Page)

Answer : You can put a meta refresh Tag in the irc_online.php <meta http-equiv="refresh" content="30"> OR you can use Javascript with setInterval to refresh the src of the Source... <script> window.setInterval("reloadIFrame();", 30000); function reloadIFrame() { document.frames["frameNameHere"].location.reload(); } </script> Let's assume that your iframe id= myIframe here is the code: <script> window.setInterval("reloadIFrame();", 30000); function reloadIFrame() { document.getElementById("myIframe").src="YOUR_PAGE_URL_HERE"; } </script> Okay... so i know that i'm answering to a decade question, but wanted to add something! I wanted to add a google calendar with special iframe parameters. Problem is that the calendar didn't work without it. 30 seconds is a bit short for my use, so i changed that in my own file to 15 minutes This worked for me. <script...