halfrican Posted September 15, 2008 Share Posted September 15, 2008 Hi guys, I'm having a problem with a bit of code. It uses a marquee to reload a page after every cycle the page in question gets updated by a separate process using ftp. I've tested the site using firefox under ubuntu and it works fine, but under windows, the page does not update. Please can you look at the code and tell me if you see any problems, or suggest an alternative way of getting the page to update. Thanks. this page is embedded in another using an iframe <html> <head> <script type="text/javascript"> window.onload = function reloadframe() { document.getElementById("trackinfo").onfinish = function reloadframe() { location.reload(); } } </script> </head> <body bgcolor="black"> <font color="white"> <marquee id="trackinfo" loop="1">this text gets updated</marquee> </font> </body> </html> Quote Link to comment Share on other sites More sharing options...
Rab Posted September 15, 2008 Share Posted September 15, 2008 location.reload(true) should cause a reload from the server. location.reload() is the same as location.reload(false) which will attempt to reload from cache. Quote Link to comment Share on other sites More sharing options...
halfrican Posted September 15, 2008 Author Share Posted September 15, 2008 location.reload(true) should cause a reload from the server. location.reload() is the same as location.reload(false) which will attempt to reload from cache. many thanks :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.