XHTML strict, and IFRAME vs OBJECT

S

stephen.cunliffe

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/insert-html-page-into-another-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
 
C

cwdjrxyz

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/insert-html-page-into-another-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.
 
C

cwdjrxyz

cwdjrxyz said:
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.
 
A

ASM

(e-mail address removed) 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-20000126/DTD/xhtml1-transitional.dtd
not allowed in strict
http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-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 : said:
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.
 
J

Jonas Raoni

ASM escreveu:
(e-mail address removed) a écrit :

Depends with which DTD :
allowed in transitional :
http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd
not allowed in strict
http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top