Blog

Tutorial: Amazon.com Search API

Posted on

6. The Product Vendor

Product Vendor Code

// Item Vendor
      var li2 = cel('p');
      li2.style.cssText = "font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; font-weight:normal; text-decoration:none;";
      if(tmpItem.vendor)
      {
         li2.appendChild(ctn("Vendor: " + tmpItem.vendor));
      }

In the above code for the product vendor, the JSON string is appended to another

element variable. Note that you cannot reuse the same element variable for different data within the loop. Each element, even those of the same type, must be defined in separate variables.