I'm using Lazy Load Plugin for jQuery to load imgs when page is scrolled. Additionaly I want to load images from gallery to container while user clicks an anchor (to prevent from unnecessary content loading), by .load() function:
$('#category_1').load('gallery.php?a=1');
My problem is fact, that .load() function strips <script> tags from loaded content, and images cannot load using Lazy Load plugin.
<img src="blank.gif" data-original="img.png" alt="img" />
<script> $('img').lazyload({ effect : 'fadeIn' }); </script>
So, I just thought that I can put <script> tags in file where content is loaded, but it doesn't work.
Is anybody meet that kind of issues? Greetings
.load()method does strip out<script>blocks but it does execute them.<img>in gallery.php, after tag put lazyload script, and load gallery.php in index.php to my container, I can't see mistakes too, but It's not working :(