Get the latest alerts and community news about eBay Web Services here in our blog.
Developer Impact: Domain Split on the View Item Page
Posted by
Laurel Kline
in Business News & Product News
Monday, Aug.25.2008, 3:42 PM PT
Update (29 Aug, 2008): We have updated the domain split coding so that some of these best practices no longer apply.
Update (9 Sep, 2008): But testing has uncovered some new best practices.
As part of the new View Item page release, eBay is hosting the user description on a different domain and loading it into an iFrame for display on the View Item page. This helps eBay separate user content from eBay content and further protect its users from certain types of content that may harm your computer. With this change, your scripts will only be allowed to modify and control your item description and the area it occupies.
eBay has implemented this in a way that will not impact your SEO.
There are some steps you can take to make sure your content appears as expected inside an iFrame.
Content Dimensions
- We recommend that all HTML content should have relative widths and heights.
Images and other fixed size objects should not exceed 700 px in width.
Tables and other content blocks should not have a set height percentage.
- Avoid negative margins. They will hide your content behind the iFrame.
File Linking
- HTML and Flash links and form actions should target a _blank window and use full paths including the http:// prefix.
- Externally hosted images and other content references should point to valid existing content and use full paths including the http:// prefix. In other words, there should be no broken links.
- Externally hosted images and other content must have quick load speeds.
Content Validity
- HTML content should be well formed; preferably comply with XHTML 1.0 standards.
- Script and other rich content should not depend on any elements in the eBay View Item page.
- Scripts should properly execute without any runtime warnings or errors.
Also, the setInterval() and setTimeout() JavaScript functions will be disabled.