Is it possible to create a HTML block on a page and have ti auto refresh the content of it only?
I have tried to use <meta http-equiv="refresh" content="10"> but this cause the entire page to reload..
EDIT: Figured it out.. i put the refresh meta info on a separate html page I made, then inserted the iframe with THAT page in the HTML block now it only refreshes that block.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Try this in that HTML block:
<script type="text/javascript"> var auto_refresh = setInterval( function () { $('#Div_Id_Here').load('SomeFile.html').fadeIn("slow"); }, 5000); // refreshes the div every 5000 milliseconds </script>
<div id="Div_Id_Here"> </div>
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Thank you HL, would that fade this block on the right of this page (music page, turn speakers down)
http://www.duvallocals.info/page/djjax
in and out instead of the quick refresh i see? I'm using to refresh the song info, I would like a smoother change..
ManOfTeal.COM a Proud UNA site, six years running strong! |
Try this in that HTML block:
<script type="text/javascript"> var auto_refresh = setInterval( function () { $('#Div_Id_Here').load('SomeFile.html').fadeIn("slow"); }, 5000); // refreshes the div every 5000 milliseconds </script>
<div id="Div_Id_Here"> </div>
thanks but that would not work for i.e. www.mysite.com:8000
ManOfTeal.COM a Proud UNA site, six years running strong! |
It's best for loading php files. Not sure what you got going on there. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
EDIT, sorry
trying to make this type of page refresh.
http://www.duvallocals.info:8005/
ManOfTeal.COM a Proud UNA site, six years running strong! |
EDIT, sorry
trying to make this type of page refresh.
http://www.duvallocals.info:8005/
You can periodically refresh an iframe on a page like this, and transition effects should be minimized . Use this on that page you got with the meta refresh
<html> <body> <script type=text/javascript> function refresh() { document.all.iframe1.src = document.all.iframe1.src; } window.setInterval("refresh()",10000); </script>
<iframe name='iframe1' src='http://www.duvallocals.info:8005/'frameborder='0' height='1000' scrolling='no' width='100%'></iframe> </body> </html>
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
That's exactly what i needed!
Thanks.
Now I can actually see the entire page too!
ManOfTeal.COM a Proud UNA site, six years running strong! |
OK HL,
after changing that block out I thought it was working until I cleared the cache..
I had to revert back to old way, thanks for that code though, I will work with it some more today
ManOfTeal.COM a Proud UNA site, six years running strong! |
I didn't say to put the code in a HTML block on your Dolphin site. Is that what you did? My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |