javascript - How to load video with json using lightGallery.js? -



javascript - How to load video with json using lightGallery.js? -

.i illustration embled video: http://sachinchoolur.github.io/lightgallery/examples.html , have problem json! can't load video when click image(div json) on website!! when click image(div) slide video load finish , on slide can load video(div , div json) !! please help me when click image(div json) video must load.

this code:

<script type="text/javascript"> $(document).ready(function () { $.post("listvideojson.aspx", function (response) { var listlinks = json.parse(response); (var = 0; < listlinks.length; i++) { $("#video").append("<div data-src='" + listlinks[i].link + "'><img class='hinh' src='images/149712_133340426820507_1784820870_n.jpg' /></div>"); } }); }); </script> <link href="css/lightgallery.css" rel="stylesheet" /> <script src="scripts/lightgallery.js"></script>

this html body:

<div id="video"> <div data-src="https://vimeo.com/110223381"> <img class="hinh" src="images/10156016_399548070182677_8227239214459379074_n.jpg" /> </div> <div data-src="https://vimeo.com/110223326"> <img class="hinh" src="images/10156016_399548070182677_8227239214459379074_n.jpg" /> </div> <div data-src="https://vimeo.com/110214790"> <img class="hinh" src="images/10156016_399548070182677_8227239214459379074_n.jpg" /> </div> <div data-src="https://vimeo.com/110214789"> <img class="hinh" src="images/10156016_399548070182677_8227239214459379074_n.jpg" /> </div> </div>

javascript jquery asp.net json

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -