PDA

View Full Version : showing ebay feedback on site



novatake
May 29th, 2008, 11:15 AM
hi
all

the title kinda explained it basically i want to show my feedback from previous auctions and what not in each auction which is just a basic html page so is there a way to load my ebay feedback into the middle of a html page.

ive tried good old Iframes and yeh works good but it gives me the full page including ebay header and what not. which im not after i just want what was said who said it and the date and link to item basically no headers or footers

ive also tried the few websites that have things to show feedback on sites but they dont really work.

Any ideas

if this is supposed to be in php apologies i havent tried php for it yet and please move me

-Tom

actionAction
June 1st, 2008, 02:56 AM
Hi Tom,

This is going to be tricky for you with client side (or impossible rather), because of the cross domain policy. If the files were on the same domain, it would be a different story and you could use something like this:


//Get the iframe DOM
var d = document.getElementById('MyIframe').contentWindow. document;
//Get the particular tag you are looking for
var elem = d.getElementById('DesiredDivContents').innerHTML;
//Put them in your own div
document.getElementById('MyFancyDiv').innerHTML = elem;This will not work though, because of security issues. Therefore, PHP would be your best option. Something to the tune of:


<?php
$content = file_get_contents("http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback2&userid=mico_electronics&&ftab=FeedbackAsSeller&sspagename=VIP:feedback:3:us");
//further content scraping, placing into your page
?>

The nature of ebay's file types still may prevent you from doing this. Haven't tried it myself...

I have attached a cheap proof of concept for reading the contents of an iframe if you can get the contents into a file on your server, this is how you would read them.

novatake
September 3rd, 2008, 10:43 AM
thanks for the reply ill give it a crack

actionAction
September 3rd, 2008, 12:35 PM
I forgot about this, :lol:, no problem though, hope it works out for you.

LhtsCamraACTION
September 9th, 2008, 05:45 AM
I have been searching for something like this, thank you action!!

=]