15 replies [Last post]
abrichardson
abrichardson's picture
Offline
Regular
chattanooga, TN
Last seen: 12 years 50 weeks ago
chattanooga, TN
Timezone: GMT-5
Joined: 2005-12-13
Posts: 36
Points: 0

I have this code:

<iframe 
	src="http://rcm.amazon.com/e/cm?t=guitarmods-20&o=1&p=11&l=st1&mode=books&search=guitar&=1&fc1=90EE90&lt1=_blank&lc1=90EE90&bg1=000000&f=ifr" 
	marginwidth="0" 
	marginheight="0" 
	width="120" 
	height="600" 
	border="0" 
	frameborder="0" 
	style="border:none;" 
	scrolling="no">
</iframe>

and am using the xhtml strict dtd. When I check validation, i get yelled at Laughing out loud what steps ca be taken to transform that to compliant code?

Save a reef.

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 6 years 46 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

using iframe with xhtml strict

none, iframes are not allowed in xhtml 1.0 strict. Frames and iframes are passe'. What are you trying to accomplish? Maybe some server side scripting would help.

abrichardson
abrichardson's picture
Offline
Regular
chattanooga, TN
Last seen: 12 years 50 weeks ago
chattanooga, TN
Timezone: GMT-5
Joined: 2005-12-13
Posts: 36
Points: 0

using iframe with xhtml strict

That's exactly what I concluded too Sad The above code points to amazon.com. It's generated by Amazon.

Save a reef.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

using iframe with xhtml strict

<iframe> is deprecated in favor of <object>. Here is the code I use in the show/hide div demo.

<p class="ctr"><object type="text/html" data="2col.html">
      This embedded page may be found at <a href="2col.html">“2 Column—Apparent Equal Height”</a>. 
    </object></p>

Notice that object allows for alternative content.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

abrichardson
abrichardson's picture
Offline
Regular
chattanooga, TN
Last seen: 12 years 50 weeks ago
chattanooga, TN
Timezone: GMT-5
Joined: 2005-12-13
Posts: 36
Points: 0

using iframe with xhtml strict

So a simple solution would be to simply wrap the <iframe> tags in <object>?

Save a reef.

Anonymous
Anonymous's picture
Guru

using iframe with xhtml strict

abrichardson wrote:
So a simple solution would be to simply wrap the <iframe> tags in <object>?
How does that make the iframe undeprecated?

larmyia
Offline
Elder
London
Last seen: 12 years 18 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

using iframe with xhtml strict

Gary, tried to check out your demo and it's not being found!

larmyia

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

using iframe with xhtml strict

Sheesh. One totally crappy link and all sorts of people start jumping on you. Shock :oops:

Try again. You Angle-landers and the Euros seem to be getting in ok.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

using iframe with xhtml strict

abrichardson wrote:
So a simple solution would be to simply wrap the <iframe> tags in <object>?

No! Did you not look at the code I posted? The object tag is used in lieu of the iframe tag.

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

using iframe with xhtml strict

Dunno bout that us Lundners are having problems earlier it was refusing to communicate just now it offered up a 404 and I'm just down the road from the data centre, not a great advert for British IT infrastructure and web hosting really Crying

Hugo

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

using iframe with xhtml strict

Hugo wrote:
Dunno bout that us Lundners are having problems earlier it was refusing to communicate just now it offered up a 404 …

Post two crappy urls … Sheesh! :oops: :oops: :oops:

Try again.

red facedly,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 14 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

using iframe with xhtml strict

Still not happening for me down here. Seems like pretty orindary performance from your host for this to be going on this long.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

using iframe with xhtml strict

Tyssen wrote:
Still not happening for me down here. Seems like pretty orindary performance from your host for this to be going on this long.

Yeah, it seems only Europe and New York state, whatever province is home to Montreal and Google!? are managing to access my site. The rest of the Americas and the Pacific Rim (and the rest of Asia) are sol.

I can ftp my site, and can pull log stats, but can't even see my own pages.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 6 years 46 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

using iframe with xhtml strict

time for a new host

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

using iframe with xhtml strict

Can't ping or tracert Gary I think it's time for some very sharp words with tech support, as this is a repeat of the thread from last week or week before!

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

OrbitalChiller
Offline
newbie
Last seen: 11 years 30 weeks ago
Joined: 2009-06-26
Posts: 1
Points: 0

Thank you so much, i was

Thank you so much, i was struggling embedding the plurk widget on my website which is strict xhtml 1.0. Now it pass the validation Smile