By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,650 Members | 1,772 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,650 IT Pros & Developers. It's quick & easy.

XHTML strict, and IFRAME vs OBJECT

P: n/a
Hi all,

There's been a bunch of chatter recently about using the Object tag,
vs. the Iframe tag.

I couldn't care less which one is used, I just want to be able to load
a "page" inside another "page", (same or different domain) and it has
to work in all browsers(*).

By work, it means I have to be able to have an anchor in my parent
document, that renders a link, that is targeted to open in the "child"
iframe/object.

on this page:
http://www.aplus.co.yu/web-dev/inser...her-html-page/

it suggests that using OBJECT, is the way to go, but one of the
comments, suggests that the target attribute on anchors, will no longer
be supported? Anyone have a W3C spec link that specifically indicates
which tags/attributes are allowed/deprecated in XHTML? I went through
the DTD for XHTML 1.0 Strict, and only saw that the "menu","dir", and
"isindex" tags are deprecated?... is this correct?

Any and all thoughts on the matter highly appreciated.

PS I apologize that this isn't 100% JavaScript related, but the
usability of (A vs. B) will certainly include JavaScript access.
(*) or at least IE, Mozilla, Safari and Opera

Nov 23 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

st**************@gmail.com wrote:
Hi all,

There's been a bunch of chatter recently about using the Object tag,
vs. the Iframe tag.

I couldn't care less which one is used, I just want to be able to load
a "page" inside another "page", (same or different domain) and it has
to work in all browsers(*).

By work, it means I have to be able to have an anchor in my parent
document, that renders a link, that is targeted to open in the "child"
iframe/object.

on this page:
http://www.aplus.co.yu/web-dev/inser...her-html-page/

it suggests that using OBJECT, is the way to go, but one of the
comments, suggests that the target attribute on anchors, will no longer
be supported? Anyone have a W3C spec link that specifically indicates
which tags/attributes are allowed/deprecated in XHTML? I went through
the DTD for XHTML 1.0 Strict, and only saw that the "menu","dir", and
"isindex" tags are deprecated?... is this correct?

Any and all thoughts on the matter highly appreciated.

PS I apologize that this isn't 100% JavaScript related, but the
usability of (A vs. B) will certainly include JavaScript access.
It takes a while to compare all of the differences between xhtml 1.0 in
the transitional, strict, and frameset versions, and xhtml 1.1 in the
single version, with html 4.01. Since you are interested in a specific
problem, it might be best to write a page in the xhtml version of your
choice and then validate it at the W3C html validator at
http://validator.w3.org/ . It likely will indicate any illegal code you
use for the version you select. If you then find problems, you can ask
specific questions here or look them up on the web.

If I remember correctly, www.w3schools.com has a listings of tags
indicating depreciated ones.

Nov 23 '06 #2

P: n/a

cwdjrxyz wrote:
It takes a while to compare all of the differences between xhtml 1.0 in
the transitional, strict, and frameset versions, and xhtml 1.1 in the
single version, with html 4.01. Since you are interested in a specific
problem, it might be best to write a page in the xhtml version of your
choice and then validate it at the W3C html validator at
http://validator.w3.org/ . It likely will indicate any illegal code you
use for the version you select. If you then find problems, you can ask
specific questions here or look them up on the web.

If I remember correctly, www.w3schools.com has a listings of tags
indicating depreciated ones.
Yes the w3schools site has a nice table in the xhtml 1.0 section that
lists tags and indicates which are depreciated. On the very right side
of the table under DTD, it indicates in which of the 3 flavors of xhtml
1.0 that the tag is allowed. For example, iframe is allowed in the
transitional and frameset versions, but not in the strict version, of
xhtml 1.0. There is another table under the html section for tags in
html 4.01. If a tag is marked as depreciated, most browsers likely
still support it because browsers tend to support very old code to
display old pages and attempt to display pages that may not be written
to strict standards. For example, the embed tag never was an official
part of W3C html. Thus it is not allowed rather than just being
depreciated. However most new browsers still support it for some
things, especially for playing media on browsers that do not support
ActiveX.

Nov 23 '06 #3

P: n/a
ASM
st**************@gmail.com a écrit :
Hi all,

There's been a bunch of chatter recently about using the Object tag,
vs. the Iframe tag.

I couldn't care less which one is used, I just want to be able to load
a "page" inside another "page", (same or different domain) and it has
to work in all browsers(*).
http://joliclic.free.fr/html/object-tag/en/index.php
http://joliclic.free.fr/html/object-tag/index.php

Not sure tag object allow cross-domain ?

What I can't make is to send a file to an object already shown on same page.
By work, it means I have to be able to have an anchor in my parent
document, that renders a link, that is targeted to open in the "child"
iframe/object.
..../...
suggests that the target attribute on anchors, will no longer
be supported?
Depends with which DTD :
allowed in transitional :
http://www.w3.org/TR/2000/REC-xhtml1...ansitional.dtd
not allowed in strict
http://www.w3.org/TR/2000/REC-xhtml1...ml1-strict.dtd
I went through
the DTD for XHTML 1.0 Strict, and only saw that the "menu","dir", and
"isindex" tags are deprecated?... is this correct?
it seems 'target' too
Launch a search about 'target' (as attribute) in file W3C DTD strict
above --not found

And I indeed wonder what is the method of replacement !?

How to yet have a top menu for the displayed page ?
Ho ! I see : <a href="#myLink">
PS I apologize that this isn't 100% JavaScript related, but the
usability of (A vs. B) will certainly include JavaScript access.
To dynamically open a file in your object you'll certainly need JS.

--
Stephane Moriaux and his (less) old Mac already out of date
Nov 23 '06 #4

P: n/a
ASM escreveu:
st**************@gmail.com a écrit :
>suggests that the target attribute on anchors, will no longer
be supported?

Depends with which DTD :
allowed in transitional :
http://www.w3.org/TR/2000/REC-xhtml1...ansitional.dtd
not allowed in strict
http://www.w3.org/TR/2000/REC-xhtml1...ml1-strict.dtd
The XHTML is bases on modularization
<URL:http://www.w3.org/TR/xhtml-modularization/abstract_modules.html>.
You can add new dtd "modules" or create your own (this way you can add
new properties to elements), I preffer to use just the base set.

For the target attribute on anchors, you can add this module:
<URL:http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_targetmodule>
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Nov 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.