I am trying to add the Pinit button to my website. The problem is that, the Pinit button requires the image url, but in my case the images are generated dynamically. So how do I add the Pinit button such that it Pins the the visible image of the page.
Something like this example will do great.
http://jsfiddle.net/t4KHR/
run the below code once you have dynamically appended the images
set the parent variable as the ID parent of the images you want sharing