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]](/icons/blank.gif)
Name Last modified Size Description
![[DIR]](/icons/back.gif)
Parent Directory -
![[IMG]](/icons/image2.gif)
photo_1.jpg 03-Jul-2015 14:21 396K
![[IMG]](/icons/image2.gif)
photo_2.jpg 03-Jul-2015 14:22 392K
![[IMG]](/icons/image2.gif)
photo_3.jpg 03-Jul-2015 14:21 475K
![[IMG]](/icons/image2.gif)
photo_4.jpg 03-Jul-2015 14:21 173K
![[IMG]](/icons/image2.gif)
photo_5.jpg 03-Jul-2015 14:29 396K
![[IMG]](/icons/image2.gif)
photo_6.jpg 12-Jul-2015 21:45 211K
![[IMG]](/icons/image2.gif)
photo_7.jpg 12-Jul-2015 21:45 97K
![[IMG]](/icons/image2.gif)
photo_8.jpg 12-Jul-2015 21:45 570K
![[IMG]](/icons/image2.gif)
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