No IFRAME support, then redirect to the page..so no lost

I use IFRAMES, I know its stupid. But now I need a fail save. I have noticed if a user can't display, the IFRAME displays a line of text. But what I would like to do is if they dont support IFRAMES automaticly redirect them to the page in the IFRAME. Is this possible>?


Thanks,
Caiapfas
LVL 2
CaiapfasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b_smith_79Commented:
Try this:

<iframe src="myiframe.html">
<!--#include file="NoIframes.htm"-->
</iframe>

in the NoIframes.htm page, put the following:

<script language="javascript">
window.location = "myiframe.html"
</script>

Not sure if this will work, I cannibalised it partially from another solution...try it
0
ch3rryb0mbCommented:
have you tried using the <noframes> tag?
0
CaiapfasAuthor Commented:
yes, but i need it to automaticly redirect them when their not supported, to the page in the IFRAME
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

slydonCommented:
how about a simple browser dependent redirect
if netscape 3 then go to site w no iframe
if IE 5 then got to site w iframe
0
CaiapfasAuthor Commented:
ok, csh3rryb0mb hit the closest, users are dumb, and most just don't want to click more then once are twice, who can blame them. So if they have IFRAME support turned off or they don't support them I want to redirect them automaticly to the url in the IFRAME.

I would thin using <noframes> somehow. but i'm at a lost.
0
ch3rryb0mbCommented:
ok, so instead of trying to redirect them to the page, simply copy and paste the code of the page that would be in the frame into the master page like so:

<html>
<body>
<iframe src=whatever></iframe>
</body>

<noframes>
<body>
"content of page" or link to page
</body>
</html>

how bout that?

-char
0
CaiapfasAuthor Commented:
ch3rryb0mb,

Good idea, but i cant do this, the page loading in the iframe is dynamic, its not html, and its not on my domain, i need it to redirect..
0
ch3rryb0mbCommented:
well, then you could just put a link that says "click here to view this page" or whatever
0
tang_tzuchiCommented:
<html>
<head>
</head>
<body>
<iframe src="E:\file.html">
</iframe>

<noframes>
<script>
document.location.href="try2.html";
</script>
</noframes>
</body>

</html>

may i know how you load your iframe?
tanks.
0
CaiapfasAuthor Commented:
PERFECT!!!!!!!! many thanks!

could you take a look and let me know if you think it will work?
http://www.ticketstogo.com/concerts/david_bowie.html
0
tang_tzuchiCommented:
I think it can work.
but i can't test on it because i can't get the old version of netscape to test about it,sorry.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.