Hi Katya,
I followed the link, and download ZIP file, then created a test app and:
create the JS asset with this file jquery.lazyscrollloading
add an HTML component and edited it with
code
ul /ul
li class="lazyItem"Lazy Item1/li
li class="lazyItem"Lazy Item2/li
li class="lazyItem"Lazy Item3/li
li class="lazyItem"Lazy Item4/li
li class="lazyItem"Lazy Item5/li
code
3 add this on device ready event of the page
code
$(document).ready(function() {
$("#lazyScrollLoading").lazyScrollLoading({
lazyItemSelector : ".lazyItem",
onLazyItemFirstVisible : function(e, $lazyItems, $firstVisibleLazyItems) {
$firstVisibleLazyItems.each(function() {
this.innerHTML = this.getAttribute("data-lazytext");
});
}
});
});
codeBut step 3 looks that is not working, I removed this and is the same..
What Im doing wrong? and how can I apply this code to my real APP that uses DB with data fields and links to images inside Appery DB?
Regards/code/code/code/code