vendredi 17 avril 2015

Get data using image URL from AJAX call?

I have the following AJAX call for getting images from a local directory :



var imagesArray = [];
$.ajax({
url: "./images/",
success: function(data){
$(data).find("a:contains(.jpg)").each(function(){
var images = $(this).attr("href");
imagesArray.push(images);
});
for(var i=0;i<imagesArray.length;;i++)
{
var str = 'images/'+imagesArray[i];
$('<li class="slide">').append($('<img />').attr('src',str )).appendTo('#slider');
}
}
});


and my HTML code is:



<html>
<body>
<div id="imageList">
<ul id="slider"></ul>
</div>
</body>
`



  • here I am getting images from my local directory and storing the images in a list and displaying the same.

  • how to get exif data of each image.(here some link I saw which have drog & drop options : drag & drop image getting exif ),

  • used js is : exif.js


Aucun commentaire:

Enregistrer un commentaire