Java Script / html automatic refresh page
by JesseL · in Torque in Education · 10/08/2009 (7:46 am) · 0 replies
HTML and java script
I have a webpage of 15 different iFrames. Each iFrame goes to a different website.
I have a couple of wants
I want the page to refresh each frame in a time period of about 5 min.
I want it to immediatly try to refresh frames that display a "Internet Explorer Could Not Find a page to display" 404 message every 30 seconds.
I'm just not sure how to do it all.
I have a webpage of 15 different iFrames. Each iFrame goes to a different website.
I have a couple of wants
I want the page to refresh each frame in a time period of about 5 min.
I want it to immediatly try to refresh frames that display a "Internet Explorer Could Not Find a page to display" 404 message every 30 seconds.
I'm just not sure how to do it all.
for( var i = 0; i < 15; i++)
{
if( theDocumentIFrameTitle isEqualTo "404 error message" )
{
reload iFrame in 30 seconds;
theDocument.reload(iFrameInQuestion);
}
else
reload iFrame in 5 min;
}About the author
I just realized that if I wanted to create a cat that caught on fire and ran up a telephone pole and then burst into a blue waterfall. That wouldn't be to hard!