O'Reilly logo

Developing Responsive Web Applications with AJAX and jQuery by Sandeep Kumar Patel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating +1 recommendations

In this section, we will learn how to add a Google +1 button to our products. Before integrating the Google +1 button, we have to change the product image URL for the books to point to real live links. It is required for the demonstration of Google+ recommendations. The following code shows the getAllListedBook() method. You can see that we have changed the image URL links to the images hosted on the http://www.packtpub.com website:

public class ProductStore { public static List<Product> getAllListedBook() { List<Product> listProduct = new ArrayList<Product>(); Product product3 = new Product(); product3.setTitle("Master Web Application Development with AngularJS"); product3.setCost(14); product3.setDescription("Lorem ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required