Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
Infinite scroll load more videos not working properly

I have a project assignment on this and i have been battling with this for the past hours. The infinite lord more works for text and posts but not working for fullscreen video slide. Something similar to TikTok and IG reels

(function ($) {
    $.fn.loadScrollData = function (start, options) {
        var settings = $.extend({
            limit: 3,
            listingId: '',
            loadMsgId: '',
            ajaxUrl: '',
            loadingMsg: '<div style:"text-align:center;">Please Wait...!</div>',
            loadingSpeed: 10

        }, options);

        action = "inactive";

        $.ajax({
            method: "POST",
            data: {
                'getData': 'ok',
                'limit': settings.limit,
                'start': start
            },
            url: settings.ajaxUrl,
            success: function (data) {
                $(settings.listingId).append(data);
                if (data == '') {
                    $(settings.loadMsgId).html('');
                    action = 'active';
                } else {
                    $(settings.loadMsgId).html(settings.loadingMsg);
                    action = "inactive";
                }
            }
        });

        if (action == 'inactive') {
            action = 'active';
        }

        $(window).scroll(function () {
            if ($(window).scrollTop() + $(window).height() > $(settings.listingId).height() && action == 'inactive') {
                action = 'active';
                start = parseInt(start) + parseInt(settings.limit);
                setTimeout(function () {
                    $.fn.loadScrollData(start, options);
                }, settings.loadingSpeed);
            }
        });

    };
}(jQuery));
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!