473,387 Members | 1,834 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,387 software developers and data experts.

XHTML strict, and IFRAME vs OBJECT

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
4 19795

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

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: aragon | last post by:
Hi all, is it legal to use a fully-numeric string as "name" attribute for the <select> tag in the XHTML standard? E.g.: <form action="action.php" method="get"> <select name="12345"> <option...
2
by: Brian Idzik | last post by:
I've successfully setup a xhtml 1.0 strict page with Mozilla & Netscape to display links in a toolbar into an internal <div id='content'> within the same document. The toolbar uses some...
7
by: Simon Strandgaard | last post by:
There are no <iframe> tag in xhtml strict, instead I should use <object>. If I change <iframe> to <object> then my javascript stops working. I am curious to how to use <object> with javascript...
8
by: Alan Lue | last post by:
Hi, I'm trying to set up a webpage so that I can view multiple HTML files from the same page. For example, you might go to http://example.com/lab_tests.html and be able to view lab1.html,...
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");...
3
by: Frank Thomas | last post by:
So, where are we (as an industry) with regards to XHTML? I've been going through a book published in 2002 that promotes the idea that we should all be looking to create new projects as compliant...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
11
by: Michael Powe | last post by:
How can I make an XHTML-compliant form of an expression in this format: document.write("<scr"+"ipt type='text/javascript' src='path/to/file.js'>"+"</scr"+"ipt>"); this turns out to be a...
10
by: webEater | last post by:
Hello, I try the following in Firefox and other modern browsers: window.addEventListener('load', function() { document.title = CSS.getClass('fontSize'); var div = document.createElement('div');...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.