Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
photo_thumbnail = new Array();
endtime = new Array();
viewitem = new Array();
currentprice = new Array();
currencyid = new Array();
titlename = new Array();
listingtype = new Array();
var xm = new XML();
xm.ignoreWhite = true;
xm.onLoad = function() {
parse(this);
}
function parse(obj) {
for (var i=0; i<obj.childNodes.length; i++) {
var node = obj.childNodes[i];
if (node.nodeName == "GalleryURL") photo_thumbnail.push(node.firstChild.nodeValue);
if (node.nodeName == "EndTime") endtime.push(node.firstChild.nodeValue);
if (node.nodeName == "ConvertedCurrentPrice") currentprice.push(node.firstChild.nodeValue);
if (node.nodeName == "ConvertedCurrentPrice") currencyid.push(node.attributes.currencyID);
if (node.nodeName == "Title") titlename.push(node.firstChild.nodeValue);
if (node.nodeName == "ViewItemURLForNaturalSearch") viewitem.push(node.firstChild.nodeValue);
if (node.childNodes.length) parse(node);
}
}
xm.load("http://open.api.ebay.com/shopping?callname=FindItems&responseencoding=XML&appid=e-sellsG-15b5-4687-8fbb-3797e07f4157&siteid=77&version=517&sellerid(0)=opus1983&MaxEntries=21");
function parse(obj) {
for (var i=0; i<obj.childNodes.length; i++) {
var node = obj.childNodes[i];
if (node.nodeName == "GalleryURL"){
photo_thumbnail.push(node.firstChild.nodeValue);
}else{
photo_thumbnail.push("defaultbild.jpg");
}
if (node.nodeName == "EndTime") endtime.push(node.firstChild.nodeValue);
if (node.nodeName == "ConvertedCurrentPrice") currentprice.push(node.firstChild.nodeValue);
if (node.nodeName == "ConvertedCurrentPrice") currencyid.push(node.attributes.currencyID);
if (node.nodeName == "Title") titlename.push(node.firstChild.nodeValue);
if (node.nodeName == "ViewItemURLForNaturalSearch") viewitem.push(node.firstChild.nodeValue);
if (node.childNodes.length) parse(node);
}
}