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 7745905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:08:29+00:00 2026-06-01T10:08:29+00:00

I use infinite scroll for paging. And it was working fine until today. Today

  • 0

I use infinite scroll for paging. And it was working fine until today. Today I have decided to add two additional parameters to all my action methods and something is wrong now with pointing action method from infinite scroll.
So when I scroll the page action is not invoked.
So I open page source and find link that should load next page and it looks like:

href="/Tickets/AnotherSetOfData?countryCode=uk&cityName=london&ticketTypeId=-1"

If I click on this link action method is invoked, so the problem is that infinite scroll somehow stops to call this function on scroll.
This is how action method looks like

public ActionResult AnotherSetOfData(string countryCode, string cityName, int ticketTypeId)
{...}

I suspect that maybe this is routing issue but I don’t know how to handle it…

Routing

routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );

Infinite scroll

<nav id="page-nav">
    <a href="@Url.Action("AnotherSetOfData", "Tickets", new { countryCode = ViewBag.countryCode, cityName = ViewBag.cityName, ticketTypeId = ViewBag.ticketTypeId })">
    </a>
</nav>
...
$container.infinitescroll({
            navSelector: '#page-nav',    // selector for the paged navigation 
            nextSelector: '#page-nav a',  // selector for the NEXT link (to page 2)
            itemSelector: '.item',     // selector for all items you'll retrieve
            loading: {
                finishedMsg: 'No more pages to load.',
                img: 'http://i.imgur.com/6RMhx.gif'
            }
        },

      function (newElements) {

          var $newElems = $(newElements).css({ opacity: 0 });

          $newElems.imagesLoaded(function () {

              $newElems.animate({ opacity: 1 });
              $container.isotope('appended', $newElems);
          });
  • 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-01T10:08:31+00:00Added an answer on June 1, 2026 at 10:08 am

    Put this in your Global.asax.cs

    routes.MapRoute(
    "InfiniScroll", // Route name
    "{controller}/{action}/{countryCode}/{cityName}/{ticketTypeId}", //URL with parameters
    new { controller = "Tickets", action = "AnotherSetOfData"}); // Parameter Defaults
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a loop of posts that I use infinite scroll to paginate. I
i am trying to use the plugin infinite scroll it requires the selector for
I have a infinite scroll script which works for my tumblr . It's loading
I need to combine Expression Engine with http://www.infinite-scroll.com . I have tried numerous ways
I'm trying to use the infinite scroll AS3 I discuss in this SO question
First of all, I have to use and create this DOM element in a
I'm incredibly new to JQuery and Javascript in general. I'm using the Infinite Scroll
In ExtJS 4.1 beta 2 I managed to implement an infinite scroll grid with
1.I have some infinite loops how can I get the lowest cpu consumption? Should
I am trying to set up infinite-scroll on a site I am developing with

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.