473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IFrame compatible browsers

Hi All:

I'm writing a page that I'm going to need some assistance with, using
the IFrames... I know how to use them, but what I'd like to do is
write a page (using ASP here BTW) that has 2-5 IFrames on the page
(different content) BUT the trick is that I need to find a method of
providing the same information OUTSIDE of the IFrame for people who
have older browsers.

Any thoughts? I was thinking to simply detect the browser type/version
and display different content which is fine, I just need to know which
are compatible with IFrames and which aren't. I can't seem to find a
list anywhere...

Any thoughts or assistance are gratefully appreciated.

Jeff
Jul 20 '05 #1
3 19195
Jeff <je**@castingworkbook.com> wrote:
Any thoughts? I was thinking to simply detect the browser type/version
and display different content which is fine, I just need to know which
are compatible with IFrames and which aren't. I can't seem to find a
list anywhere...


You don't need browser sniffing. Just include alternative content in the
IFRAME element. See the first example at
http://www.htmlhelp.com/reference/ht...al/iframe.html

Better yet, use some other mechanism to assemble content from multiple
sources into a finished page. See also
http://www.htmlhelp.com/faq/html/des...l#include-file

Besides, some browsers can be configured to support inline frames or not to
support inline frames, so in this case, browser sniffing is even more
unreliable than it normally is.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"If you aren't part of the solution, then you are part of the precipitate."
Jul 20 '05 #2
Jeff wrote:
I'm writing a page that I'm going to need some assistance with, using
the IFrames...
Why? Frames of any sort are rarely the best (or even a good) solution for a
problem.
BUT the trick is that I need to find a method of
providing the same information OUTSIDE of the IFrame for people who
have older browsers.


<iframe ...>
Alternative content
</iframe>

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #3
On Mon, 22 Dec 2003, Jeff wrote:
IFrames... I know how to use them
[If you did, you'd be ahead of the W3C, as we will see...]
BUT the trick is that I need to find a method of
providing the same information OUTSIDE of the IFrame for people who
have older browsers.
Why does everyone seem to ask for a "trick", before even finding out
whether there's a properly-engineered solution?
Any thoughts?
Like, er, read the HTML specification, with the usual critical
attention to detail.
http://www.w3.org/TR/html401/present/frames.html#h-16.5
I was thinking to simply detect the browser type/version
Well, stop thinking that at once! It can't be done if you're
otherwise conforming to web best practice (think: proxy caches), and
even if you _do_ get a user agent string, it could easily be a browser
pretending to be something else.
I just need to know which are compatible with IFrames and which
aren't.


The *browsers* already know whether they support iframes or not.
There's no need for you to duplicate this knowledge. Just supply the
properly marked-up content.

See where the W3C sets this terrible example in their spec? -

<IFRAME src="foo.html" width="400" height="500"
scrolling="auto" frameborder="1">
[Your user agent does not support frames or is currently configured
not to display frames. However, you may visit
<A href="foo.html">the related document.</A>]
</IFRAME>

Any discerning author can see that the content of the element could be
worded so as to adapt seamlessly to the situation. As TimBL himself
said way back, and it's still a good principle: "don't mention the
mechanics". And that's precisely what is wrong with the above
example, in my estimation. http://www.w3.org/Provider/Style/

So, put your friendly content in there. Don't give the reader the
impression that you're dissatisfied with their browser - you aren't
going to win any new friends that way.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
2
by: Kim Noer | last post by:
Hi there.. I have a file that contains three iframes, when one of the iframes is updated (via <form target ...> then it must 'refresh/reload' the originating iframe, ie. the iframe that sent the...
7
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+...
16
by: Mcginkel | last post by:
I am trying to find a way to load XHTML content in an Iframe. I use to do this in html by using the following code : var iframeObject = document.createElement("iframe");...
13
by: ukrbend | last post by:
I'm new to Javascript and to html and am trying to make the following code snippet work but it doesn't. It refuses to call the getPage() function and I always get a 404 error. I know the code is...
3
by: webEater | last post by:
Hi I have a problem with a piece of javascript. i am working on a workaround for non ajax compatible browser like ie 5/6 without activeX and opera8- I use dynamically created iframes and...
3
by: Jills | last post by:
Hi All, Does anyone have any idea about how can we resize an IFRAME dynamically according to its content from another domain? I want to increase the height according to the page that is...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.