In Drupal 7, I load an AJAX View (in response to user clicking a link) with the following code (source: How to load and display a view with Ajax in Drupal 7?)
jQuery.ajax({
url: Drupal.settings.basePath + "/views/ajax",
type: "post",
data: {
view_name: "books",
view_display_id: "page", //your display id
view_args: identifier, // your views arguments
},
dataType: "json",
success: function (response) {
if (response[1] !== undefined) {
jQuery("#bloque-" + identifier).html(response[1].data);
}
}
});
However, I cannot combine AJAX Views with Infinite scroll module, and even a basic pagination does not work, as it does not override the pager link code.