javascript - How to get images from a directory and print it? -


i have php script works fine, told use jquery or javascript particular task php script does..

here's code

<?  $files = glob("logo/*.*");  ($i = 0; $i < count($files); $i++) {      $image = $files[$i];      echo '<img src="' . $image . '" alt="random image" width="100px"       height="100px" class="displayed"/>';     } ?> 

as said above php code works fine , wish have jquery code or javascript code can task.

you can send ajax request php script , print data page jquery. resolution you?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -