Solved

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

Posted on 2004-03-28
12
679 Views
Last Modified: 2008-03-17
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
0
Comment
Question by:Caiapfas
  • 4
  • 3
  • 2
  • +2
12 Comments
 
LVL 2

Expert Comment

by:b_smith_79
Comment Utility
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
 
LVL 1

Expert Comment

by:ch3rryb0mb
Comment Utility
have you tried using the <noframes> tag?
0
 
LVL 2

Author Comment

by:Caiapfas
Comment Utility
yes, but i need it to automaticly redirect them when their not supported, to the page in the IFRAME
0
 
LVL 1

Expert Comment

by:slydon
Comment Utility
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
 
LVL 1

Expert Comment

by:slydon
Comment Utility
0
 
LVL 2

Author Comment

by:Caiapfas
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 1

Expert Comment

by:ch3rryb0mb
Comment Utility
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
 
LVL 2

Author Comment

by:Caiapfas
Comment Utility
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
 
LVL 1

Expert Comment

by:ch3rryb0mb
Comment Utility
well, then you could just put a link that says "click here to view this page" or whatever
0
 
LVL 3

Expert Comment

by:tang_tzuchi
Comment Utility
<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
 
LVL 2

Author Comment

by:Caiapfas
Comment Utility
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
 
LVL 3

Accepted Solution

by:
tang_tzuchi earned 125 total points
Comment Utility
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to dynamically set the form action using jQuery.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now