How can I get all picture names from a folder using JavaScript and libraries such as angularjs and jQuery?
14:35 12 Jul 2015

I've got two sliders on my page, and I need to create a button, which will upload new pictures, that will be appearing in these sliders, the solution I found is, using AJAX or Angularjs's $http.get method, receive these pictures names, and then use it in my functions, but not one option worked, can I do this without some backend languages, using JavaScript?

I tried something like this:

$http.get('images').success(function(data) {
    $scope.images = data;
});

and this is what I've got:



 
  Index of /images
 
 

Index of /images

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory   -  
[IMG]photo_1.jpg 03-Jul-2015 14:21 396K 
[IMG]photo_2.jpg 03-Jul-2015 14:22 392K 
[IMG]photo_3.jpg 03-Jul-2015 14:21 475K 
[IMG]photo_4.jpg 03-Jul-2015 14:21 173K 
[IMG]photo_5.jpg 03-Jul-2015 14:29 396K 
[IMG]photo_6.jpg 12-Jul-2015 21:45 211K 
[IMG]photo_7.jpg 12-Jul-2015 21:45 97K 
[IMG]photo_8.jpg 12-Jul-2015 21:45 570K 
[IMG]photo_9.jpg 12-Jul-2015 21:45 124K 

Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/1.0.1c PHP/5.3.13 Server at sliders.com Port 80

javascript jquery ajax angularjs