View Full Version : Auto redirect
dpat65
07-22-2009, 01:54 PM
This is my first time posting here and was needing some help regarding auto redirect in html. I have a web page on our local network for my work that uploads screen shots of security cameras around the different locations. I have the page set to auto redirect and when it does refresh it redirects to another page that has a different set of cameras on it. The redirect works but the problem is after leaving this page up and running for several hours it will get stuck after a redirect and will keep trying to load the page for hours and wont redirect. It usually gets stuck on grabbing one of the images of the cameras, and then has problems displaying the image which then causes the page to sit and try to load for hours with no redirect. I was just wondering if there is anything that i can do for this? I am new to html and dont know much so any help will be greatly appreciated.
Dpat
X96 Web Design
07-22-2009, 03:02 PM
If it's getting stuck on loading an image, it might seem like your server's getting overloaded, or the camera isn't sending the image...
If you know where the code that causes the redirect is, could you post it? Because there may be a better method of redirection if the one seems to be freezing up.
And welcome to DD! :D
// X96 \\
dpat65
07-22-2009, 06:41 PM
First, thanks for your response. Secondly, I am using Alt in the image tag which i thought would take care of the image not laoding, but sometimes instead it just sits and tries to keep loading the image. I will post the code so you can look at it.
X96 Web Design
07-22-2009, 07:42 PM
This tag:
<meta http-equiv="refresh" content="60;url=http:/fdpages/logo.html">
should be in the <HEAD> section. (In between the <HEAD> and </HEAD> tags.)
And also, take the <P> tag out of the beginning (<p><table>) It doesn't need to be there.. As well as the </P> tag at the end.
Is it the same image not loading every time? or is it random images?
Thanks,
X96
dpat65
07-23-2009, 12:44 PM
I put the meta tab in the inside of the head tag and removed the <p> tag. I have this page redirecting after 60 second to another page which you could tell by the code but i have realized that it only sticks on one of the pages and it is usually four images that are the problem. Sometimes they will load about 3/4 of the way then stop and keep trying to load. Which will cause the timer for the auto-redirect to not start since the page is not loaded. I dont know if there is some way saying that if the images doesnt load in x amount of seconds then use the alt image tag.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.