Ajax-ified View creating problems with pager

Events happening in the community are now at Drupal community events on www.drupal.org.
abendy's picture

I have a view which accepts taxonomy terms as arguments. I have accomplished the basic functionality using an ajax request.

Problem is, now the pager href is in the format of the ajax request (I'm guessing this is because the output came from that url) as opposed to: "?page=2" etc.

Does anyone have any tips on overcoming this? Cheers

Ajax code:

    var container = $('#content-inner');

    $('#block-menu-secondary-links a').bind('click', function(){
        var trigger = $(this);
        var arg = trigger.attr('title');

        doAjax(arg,container);
        return false;
    });

    function doAjax(arg,container){
        $.ajax({
            url: 'views/ajax?view_name=home&view_display_id=page_1&view_args'+arg,
            timeout:5000,
            success: function(data){
                var result = Drupal.parseJson(data);
                updateContainer(result.display);
            },
        });
    };

    function updateContainer(content){
        container.html(content);
    }

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: