[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 10-29-2006, 07:29 AM   #1 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

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, 07:37 AM   #2 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

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 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, 07:50 AM   #3 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

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, 07:55 AM   #4 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

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 all

Tsunami Relief AIDS/HIV
Hmm, Maybe try using xHTML traditional?
Xyzer is offline  
Old 10-29-2006, 08:01 AM   #5 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

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

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:
<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, 09:53 AM   #7 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

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, 09:57 AM   #8 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 10:49 AM   #9 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

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, 11:12 AM   #10 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 11:36 AM   #11 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

Save a Life
You're right, it works. But unfortunately it still has all the validation errors.
-Rasmus- is offline  
Old 10-29-2006, 11:41 AM   #12 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 11:56 AM   #13 (permalink)
NamePros Addict
 
-Rasmus-'s Avatar
 
Join Date: Mar 2006
Location: Tallinn, Estonia
Posts: 667
4.75 NP$ (Donate)

-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all-Rasmus- is a name known to all

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:22 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85