NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [resolved] Problem with XHTML Strict validation

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-29-2006, 08:29 AM THREAD STARTER               #1 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life

Problem with XHTML Strict validation


Hi,

I have made my site almost XHTML 1.1 Strict valid but there's one Amazon ad's code that doesn't validate. Any ideas of how to fix that?

Link to validation result: http://validator.w3.org/check?uri=ht...shamonline.com

Thanks
-Rasmus- is offline  
Old 10-29-2006, 08:37 AM   #2 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
If you could please post the amazon code, I could correct it for you, As it is hard to see the code on the validation page.
Thanks.
Xyzer is offline  
Old 10-29-2006, 08:50 AM THREAD STARTER               #3 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life
Sure, here it is:

Code:
<center>
<iframe
src="http://rcm.amazon.com/e/cm?t=johngrisham0a-20&amp;o=1&amp;p=8&amp;l=st1&amp;mode=books&amp;search=john%20grisham&amp;=1&amp;fc1=&amp;lt1=&amp;lc1=&amp;bg1=&amp;f=ifr" marginwidth="0" marginheight="0" width="120" height="240" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe></center>
-Rasmus- is offline  
Old 10-29-2006, 08:55 AM   #4 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
Hmm, Maybe try using xHTML traditional?
Xyzer is offline  
Old 10-29-2006, 09:01 AM THREAD STARTER               #5 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life
Doesn't help, still have the same errors, plus a few more.
-Rasmus- is offline  
Old 10-29-2006, 10:33 AM   #6 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Change line 5 (or where ever your similar code is) to:
????: NamePros.com http://www.namepros.com/programming/252147-resolved-problem-with-xhtml-strict-validation.html
<meta http-equiv="Content-Type" content="UTF-8" />

A few of the errors are for having </meta>. Instead of having it like that, end your opening meta tag with />
example: <meta name="distribution" content="global" />

Change <center> to
<div style="text-align: center;">
(and </center> to </div>)

All the rest of the errors seem to be because <iframe ..> isn't a valid XHTML object. I don't know how you can fix those.
Dan is offline  
Old 10-29-2006, 10:53 AM THREAD STARTER               #7 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life
Thanks, now there's only iframe left... Is there maybe a code to wrap around the iframe so that the validator would skip that part?
-Rasmus- is offline  
Old 10-29-2006, 10:57 AM   #8 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
You could use javascript to write it.
Code:
<script type="text/javascript">
document.write('Put your iframe code here');
</script>
Put that where you want the iframe.
Dan is offline  
Old 10-29-2006, 11:49 AM THREAD STARTER               #9 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life
That didn't work, the ad just disappeared (maybe because I'm using Textpattern CMS).
-Rasmus- is offline  
Old 10-29-2006, 12:12 PM   #10 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
I just tested the following and it works:
Code:
<script type="text/javascript">
document.write('<iframe src="http://rcm.amazon.com/e/cm?t=johngrisham0a-20&amp;o=1&amp;p=8&amp;l=st1&amp;mode=books&amp;search=john%20grisham&amp;=1&amp;fc1=&amp;lt1=&amp;lc1=&amp;bg1=&amp;f=ifr" marginwidth="0" marginheight="0" width="120" height="240" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>');
</script>
Dan is offline  
Old 10-29-2006, 12:36 PM THREAD STARTER               #11 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life
You're right, it works. But unfortunately it still has all the validation errors.
-Rasmus- is offline  
Old 10-29-2006, 12:41 PM   #12 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Code:
<script type="text/javascript">
<!--
document.write('<iframe src="http://rcm.amazon.com/e/cm?t=johngrisham0a-20&amp;o=1&amp;p=8&amp;l=st1&amp;mode=books&amp;search=john%20grisham&amp;=1&amp;fc1=&amp;lt1=&amp;lc1=&amp;bg1=&amp;f=ifr" marginwidth="0" marginheight="0" width="120" height="240" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>');
-->
</script>
Try that.
Dan is offline  
Old 10-29-2006, 12:56 PM THREAD STARTER               #13 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
Join Date: Mar 2006
Location: EST
Posts: 698
-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold-Rasmus- is a splendid one to behold
 


Save a Life
Excellent!

Quote:
This Page Is Valid XHTML 1.1!
Thanks so much for your help, Dan. Rep added.
-Rasmus- is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:15 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger