The Amazon pop-up review service is a simple yet powerful way to integrate your site with Amazon. It allows anyone with a web site to generate dynamic customer reviews without needing to know anything about Amazon’s API (see Chapter 6). An independent developer has provided this service to anyone who would like to use it.
All you need to set up the service on your site is a product’s ASIN [Hack #1]. When a visitor clicks the pop-up review link, the application receives the ASIN, connects to Amazon’s API, downloads the specific XML data, and parses through it to build the product page with reviews. The data is then displayed on a stylized web page in a new browser window.
Displaying the generated code in a pop-up window takes just two easy
steps. First, create a new HTML page and paste the following
tags. This code creates a function called
AmazonLookup that will control the state of the
pop-up window and initiate
a link to the remote server.