I've created a page that display Instagram images in a grid view. When I click on a particular image a new page opens up showing that particular image from the original Instagram link. I want the image to be opened in the original page instead of any new page using only Yahoo YUI. An example here.(Under the panel_five). I have no experience in YUI. My entire code is://it is displaying 10 images in 10 different boxes
$(function() {
$.ajax({
type: "GET",
dataType: "jsonp",
cache: false,
url: "https://api.instagram.com/v1/media/popular?client_id=70fd1ce846d641928bf0a047053cf62d",
success: function(data) {
for (var i = 0; i < 10; i++) {
$('.ttl').first().parent().append('<div class="ttl"><div class="ttlpadding"><div class="item">' + "<a href='" + data.data[i].images.standard_resolution.url +"' ><img src='" + data.data[i].images.thumbnail.url +"' /></a>" +"</div></div></div>");
}
}
});
});