Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

228
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda