473,796 Members | 2,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iframe and HTML 4.01

I have the following document, at http://ataru.gomen.org/file/test.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Hello, world!</h1>
<iframe></iframe>
</body>
</html>

The whole point of <iframe> is to embed a frame in a page, is it not?
But this document is not 4.01 strict, nor is it 4.01 frameset. Can I
use an <object> to get exactly the same effect as the <iframe>, or
must I resign myself to having a non-conforming page?

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #1
28 4102
Christopher Benson-Manica wrote:
The whole point of <iframe> is to embed a frame in a page, is it not?
Yes ... with all the problems that come with that.
But this document is not 4.01 strict, nor is it 4.01 frameset.
Its in Transitional.
Can I use an <object> to get exactly the same effect as the <iframe>
Yes ... in some browsers. In other browsers (which support iframe) you will
find interesting bugs, while still others will ignore it entirely.
, or must I resign myself to having a non-conforming page?


As usual, "not using frames" is likely to be the best solution.
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
DU
Christopher Benson-Manica wrote:
I have the following document, at http://ataru.gomen.org/file/test.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Hello, world!</h1>
<iframe></iframe>
</body>
</html>

The whole point of <iframe> is to embed a frame in a page, is it not?
But this document is not 4.01 strict, nor is it 4.01 frameset. Can I
use an <object> to get exactly the same effect as the <iframe>, or
must I resign myself to having a non-conforming page?


I recommend the following when using HTML 4.01 strict, if you must
import, embed an html document within an html document:

<p>
<object data="path/filename.html" type="text/html">
<a href="path/filename.html"> Some descriptive title for the link</a>
</object>
</p>

Best is still to avoid embedding html documents within html documents
for numerous reasons: bookmarking, copyrights, usability, navigability,
etc..

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #3
DU <dr*******@hotn ospammail.com> spoke thus:
<p>
<object data="path/filename.html" type="text/html">
<a href="path/filename.html"> Some descriptive title for the link</a>
</object>
</p>
Does that give the same effect as the <iframe>? More importantly,
does it work with IE 5.5/IE 6? I read on a message board that
<object> was broken for IE as of sometime last year. I don't know
for sure that I can do that anyway, since the <iframe> is heavily
modified and accessed by JavaScript...
Best is still to avoid embedding html documents within html documents
for numerous reasons: bookmarking, copyrights, usability, navigability,
etc..


That, unfortunately, is not a design decision I can make.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #4
David Dorward <do*****@yahoo. com> spoke thus:
Its in Transitional.
Ah. Perhaps I will use that for this page.
Yes ... in some browsers. In other browsers (which support iframe) you will
find interesting bugs, while still others will ignore it entirely.
I'm exclusively concerned with recent versions of Netscape/Mozilla and
IE, but I have heard that <object> is buggy in IE.
As usual, "not using frames" is likely to be the best solution.


I'd love to, but I wasn't around when this code was written originally ;)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #5
Christopher Benson-Manica <at***@nospam.c yberspace.org> wrote:
<p>
<object data="path/filename.html" type="text/html">
<a href="path/filename.html"> Some descriptive title for the link</a>
</object>
</p>
Does that give the same effect as the <iframe>? More importantly,
does it work with IE 5.5/IE 6?


It will if you specify a width and height (in the html), replaced html
has no intrinsic width and/or height so you must specify it.
I read on a message board that
<object> was broken for IE as of sometime last year.


It is for certain content types (images mostly).
http://www.spartanicus.utvinternet.ie/embed.htm

--
Spartanicus
Jul 23 '05 #6
David Dorward <do*****@yahoo. com> wrote:
Can I use an <object> to get exactly the same effect as the <iframe>
Yes ... in some browsers. In other browsers (which support iframe) you will
find interesting bugs,


Can you expand?
while still others will ignore it entirely.


IIRC NS4 ignores object, but it renders the content so only the
embedding will fail, the content will still be accessible. Any other
relevant UAs that have problems with embedding html via object?

--
Spartanicus
Jul 23 '05 #7
DU
Christopher Benson-Manica wrote:
DU <dr*******@hotn ospammail.com> spoke thus:

<p>
<object data="path/filename.html" type="text/html">
<a href="path/filename.html"> Some descriptive title for the link</a>
</object>
</p>

Does that give the same effect as the <iframe>?


You must give width and height value in order to simulate an iframe.

More importantly, does it work with IE 5.5/IE 6?
Yes.

I read on a message board that <object> was broken for IE as of sometime last year.
You read what exactly on the unidentified message board?

I don't know for sure that I can do that anyway, since the <iframe> is heavily
modified and accessed by JavaScript...

Then don't use it.
Best is still to avoid embedding html documents within html documents
for numerous reasons: bookmarking, copyrights, usability, navigability,
etc..

That, unfortunately, is not a design decision I can make.


Well, you can certainly bring good convincing arguments against such:
there are many sites explaining in details what's wrong with iframes,
frames, etc., you know.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #8
Spartanicus wrote:
Yes ... in some browsers. In other browsers (which support iframe) you
will find interesting bugs,
Can you expand?


No actually, given that its a less-well-supported-iframe, I'd just go with
an iframe had I the need[1] for something like that.
[1] To date: once ... and that was a web application that only I use!

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #9
David Dorward <do*****@yahoo. com> wrote:
Yes ... in some browsers. In other browsers (which support iframe) you
will find interesting bugs,
Can you expand?


No actually


You forgot?
, given that its a less-well-supported-iframe, I'd just go with
an iframe had I the need[1] for something like that.


And you base this "less well supported" claim on?

--
Spartanicus
Jul 23 '05 #10

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

Similar topics

1
1896
by: dj | last post by:
Hi, Anyone have a snippet of code that will guide me as follows; I want to use an iframe but if the browser does not support iframes I want to simply replace the iframe HTML code with the URL which will be in the iframe. I'll probably detect the browser to make the switch.
1
6830
by: Silver Arrow | last post by:
Iframe ReturnValue returns undefined if domains are not the same I am using a modal window and an iFrame to try and pull a return value back. IMPORTANT : I am doing this across domains. Main app: http://webSite1.domain.com/mainApplication Other app call in ModalWindow: http://webSite2.domain.com/mainApplication I have the value returned from the modal window to the iFrame window
5
15946
by: Peroli | last post by:
Hi all, I have an iframe as stated below. When i initiate the function "open_frm()" everything is working as i expected. When the document is loaded, i click on a link in the iframe, with posts some data to the server (to url "myscript.peroli?q=something") and gets back with results. Everything happens inside the iframe, no interaction with parent window. But when i do this 2 or more times, mozilla and IE is giving me a
8
13485
by: djdave | last post by:
Pb with javascript. I've a 'main.html' script containing an 'iframe.html' IFRAME. The 'iframe.html' is containing a form. My problem is that i'm unable to get form fields values. What's the syntax ??? NB: the script has to be generic, because it has to work with any .html (i may don't know form's name and iframe's name). Thanks
24
5257
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C# Web Form). Is there any other method through which I will be able to access the IFrame Source of the page I am navigating to. Also I need to click on some of the links in the page I am navigating. Requirement is to read the data the IFrame source...
4
4166
by: moondaddy | last post by:
I have a htm page where I need to pass some data to an aspx page as a means of sending data to the database. I don't need to see the aspx page so I was going to put it in a hidden iframe. This works real good. Since I don't need the aspx page to do any postback, is there a way to pass a parameter to it with out it finishing the round trip back to the htm page? Thanks. -- moondaddy@newsgroup.nospam
9
18480
by: jad2006 | last post by:
Hi guys We have a requirement like in one iframe we have to show one site and in another iframe we have to show some other external site, we did it using <iframe src="http://www.a.com"> </iframe> <iframe src="http://www.b.com"> </iframe> now if the session expires in any one site, the login page is shown in only the correponding iframe, what we require is that the login page has to be shown in the entire window(since both...
5
5539
victorduwon
by: victorduwon | last post by:
Hi guys, I wanted to know if anyone knew if it was possible to use iframe to view only a particular section of a site in another page. I ask because I want to view only the body of a particular site without the header and footer or ads on another site. The site in question is public domain, so there are no copyright issues. I thought of using iframe, but I don't know if it it possible to do so and only view certain parts of the site. ...
23
6635
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 use it? IE5 or IE6? Thanks
1
1780
by: metomeya | last post by:
I was wondering what the code would be to have 3 different submit buttons that would change the website iframe (or a css box) web page being displayed. thanks
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9050
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.