Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get images from mysql with php jquery ajax and display them in html page inside DIVs

<script>
$(function () {

  $(document).on('click', 'div.prodcls img', function (e) {
    e.preventDefault();
    window.open($(this).attr('src').replace('/thumbnails', ''), '');
  });

});
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #images #mysql #php #jquery #ajax #display #html #page #DIVs
ADD COMMENT
Topic
Name
6+1 =