kop / yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget
https://kop.github.io/yii2-scroll-pager/
MIT License
180 stars 63 forks source link

Is it possible to remove ?page=2&per-page=10 from URL? #32

Closed con322 closed 9 years ago

con322 commented 9 years ago

Is it possible to remove the page number and per page option from URL?

As it seems to be conflicting with my ajax (alternatively how should I change my ajax)

$(document).ready(function() {
$('a.btnsolid-sm').click(function() {
    var Id = jQuery(this).attr('id');
    $.ajax({
        type: 'POST',
        data: {
            'modal_id' : Id,
        },
        url : 'http://localhost:8888/blog/viewmodal?id='+Id,
        success: function(response) {
            if(response) {
                $('.modal_blog_wrapper').html(response);
                $('#modal_'+Id).modal('show');
                $(document).on('hidden.bs.modal', modal_id, function (event) {
                    $(this).remove();
                });
            } else {
                alert('Error');
            }
        }
    });

});

});
usualdesigner commented 9 years ago

Just disable EXTENSION_HISTORY

kop commented 9 years ago

It seems like question is answered. Thanks @usualdesigner.

gabriele-carbonai commented 8 years ago

I disabled EXTENSION_HISTORY

'enabledExtensions' => ['EXTENSION_HISTORY' => false],

but now is infinity scroll and i don't want that