Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:43:02+00:00 2026-06-11T13:43:02+00:00

I am using the infinite scroll plugin ( infinite-scroll ) with jQuery isotope and

  • 0

I am using the infinite scroll plugin (infinite-scroll) with jQuery isotope and was wondering if it’s possible to modify the path with custom query parameters as user scrolls down the page to view more items.

Is there a way to access the path and modify one of the query parameter.
It’s hitting the path ok for the first time returning the first set of items and after that it hitting the next pages , 1,2 3 ok but using the same query parameters I used for the first time only updating the page number.

I would like to modify one of the parameter when hitting page 3 or 4 with something like this:

var customPath = path + "?type=items&category=clothes&pageNumber=";

Am I approaching this the wrong way?

Here is my code:

$container.infinitescroll({
    navSelector: '#page_nav', // selector for the paged navigation 
    nextSelector: '#page_nav a', // selector for the NEXT link (to page 2)
    itemSelector: '.element', // selector for all items you'll retrieve
    loading: {
        finishedMsg: 'No more categories to load.',
        msgText: "<em>Loading the next set of categories...</em>",
        img: 'http://i.imgur.com/qkKy8.gif'
    },
    pathParse: function (path, nextPage) {
        var customPath = path + "?type=items&category=all&pageNumber=";
        path = [customPath, '#contaner'];
        return path;
    }
},
// call Isotope as a callback
function (newElements) {
    $container.isotope('appended', $(newElements));
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:43:03+00:00Added an answer on June 11, 2026 at 1:43 pm

    Ok so I had to do a little hack but I got it working for my needs thanks to Rich for pointing me to the related question.

    I added some additional properties to the jquery.infinitescroll.js prototype here:

    //line 67
     $.infinitescroll.prototype = {
           //My custom parameters
            pageType: "&type=items",
            categoryParam: "&category=shoes",
            /*  
                ----------------------------
                Private methods
                ----------------------------
                */
    

    Then inside the function called:

    retrieve: function infscr_retrieve(pageNum) {}
    

    there is a variable:

    desturl = path.join(opts.state.currPage)
    

    Changed it to

    desturl = path.join(opts.state.currPage + $.infinitescroll.prototype.pageType + $.infinitescroll.prototype.categoryParam);
    

    This will add your additional query parameters at the end of the desturl.

    Then from you page where you have you JavaScript you can do something like this:

    $('#filters a').click(function () {
        $.infinitescroll.prototype.pageType = "&type=products" ;                  
        $.infinitescroll.prototype.pageType = "&category=clothes";                           
         return false;
    });
    

    This will update the query parameters of the next page with you custom queries.

    Hope this will help someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jquery isotope plugin (and infinite scrolling) + fitvids.js in a layout.
I'm using the infinite scroll jquery plugin for a website ( https://github.com/paulirish/infinite-scroll ) Everything
I'm using the jQuery Infinite Scroll plugin - https://github.com/paulirish/infinite-scroll/ to display my paginated WordPress
I found a demo of infinite scroll using the masonry plugin. http://www.jquery4u.com/demos/infinite-scrolling-demo1/ What I
I've been using JQuery masonry and now I'm adding infinite scroll. There are images
I'm incredibly new to JQuery and Javascript in general. I'm using the Infinite Scroll
Ok, so I'm using the wordpress infinite scroll plugin for a project: http://www.infinite-scroll.com/ Everything
I'm trying to set up a custom infinite scroll with jQuery and some Ajax.
I was implementing a custom CellTable that has a infinite scroll feature using the
I am using the Backbone.js Paginator plugin. It does infinite scroll pagination well by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.