Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

230
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda