amazon causes html not to validate

J

Jeff

Hi

asp.net 3.5

I've created a site which originally the html validates. Now I've signed up
to Amazon.com as an affiliate. I selected 2 banners and a widget. These are
causing my html pages to not validate.

I'm trying first to solve this problem by myself, but there are a few things
which is troubling me:
The script from amazon contains an object tag with a hexe value as player
id. Inside this object tag there is a embed tag which also has the same
player id as in object tag... So in visual studio I get a green line under
both id's saying another object on page is using this id....
But how come it be wrong, it's made my amazon.com... they should have some
guys who knows their stuff. So wonder how I should change this

A lot of the rest of the errors are because of using & in the affiliate
link. But I don't understand why that's wrong to use &. The validator
suggests using & instead. Not sure what's best here...

Below I post the html of such an affiliate link so you better can see what I
mean:
<div style="width:336px; margin-left:auto; margin-right:auto;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"
id="Player_31808dd6-254b-4a01-a484-3d300cef27c5" width="300px"
height="250px">
<param name="movie"
value="http://ws.amazon.com/widgets/q?Serv...484-3d300cef27c5&Operation=GetDisplayTemplate">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="allowscriptaccess" value="always">
<embed
src="http://ws.amazon.com/widgets/q?Serv...484-3d300cef27c5&Operation=GetDisplayTemplate"
id="Player_31808dd6-254b-4a01-a484-3d300cef27c5" quality="high"
bgcolor="#ffffff" name="Player_31808dd6-254b-4a01-a484-3d300cef27c5"
allowscriptaccess="always" type="application/x-shockwave-flash"
align="middle" height="250px" width="300px"></embed>
</object>
<noscript><a
href="http://ws.amazon.com/widgets/q?Serv...54b-4a01-a484-3d300cef27c5&Operation=NoScript">Amazon.com
Widgets</a></noscript>
</div>

any suggesions?
 
A

Alexey Smirnov

Hi

asp.net 3.5

I've created a site which originally the html validates. Now I've signed up
to Amazon.com as an affiliate. I selected 2 banners and a widget. These are
causing my html pages to not validate.

I'm trying first to solve this problem by myself, but there are a few things
which is troubling me:
The script from amazon contains an object tag with a hexe value as player
id. Inside this object tag there is a embed tag which also has the same
player id as in object tag... So in visual studio I get a green line under
both id's saying another object on page is using this id....
But how come it be wrong, it's made my amazon.com... they should have some
guys who knows their stuff. So wonder how I should change this

A lot of the rest of the errors are because of using & in the affiliate
link. But I don't understand why that's wrong to use &. The validator
suggests using &amp; instead. Not sure what's best here...

Below I post the html of such an affiliate link so you better can see what I
mean:
<div style="width:336px; margin-left:auto; margin-right:auto;">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"
id="Player_31808dd6-254b-4a01-a484-3d300cef27c5"  width="300px"
height="250px">
    <param name="movie"
value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US...">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">
    <param name="allowscriptaccess" value="always">
    <embed
src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US..."
id="Player_31808dd6-254b-4a01-a484-3d300cef27c5" quality="high"
bgcolor="#ffffff" name="Player_31808dd6-254b-4a01-a484-3d300cef27c5"
allowscriptaccess="always"  type="application/x-shockwave-flash"
align="middle" height="250px" width="300px"></embed>
  </object>
  <noscript><a
href="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US...">Amazon.com
Widgets</a></noscript>
</div>

any suggesions?

The problem here is that adding Flash requires special code that
cannot be validated. For instance, <embed> is not a part of any
standardized version of HTML. Read more on http://www.alistapart.com/articles/flashsatay
 

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

Top