Giter Site home page Giter Site logo

Comments (7)

lukeshumard avatar lukeshumard commented on April 27, 2024

Which version of the plugin are you using? Do you have a live site we can see this on or could you replicate with jsFiddle? Thanks.

from infinite-scroll.

vondwater avatar vondwater commented on April 27, 2024

Hi

I'm using version 2.0 at the moment. I've downloaded it from github. I have
a live website running but it is with a login and confidential, After the
weekend I'll make a testpage so that you can see what's going wrong.

Jurgen

2011/6/10 lukeshumard <
[email protected]>

Which version of the plugin are you using? Do you have a live site we can
see this on or could you replicate with jsFiddle? Thanks.

Reply to this email directly or view it on GitHub:
#49 (comment)

from infinite-scroll.

vondwater avatar vondwater commented on April 27, 2024

I've made a test page. You can visit it on http://extranet.lunasoftbe.com/ecommerceV3/index.php/nl/login/test
The third time you have a new infinite scroll it are the duplicate values

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

In my console, I see that it's requesting ?page=2, ?page=3, ?page=4 and so on. Maybe this is something to do with how you're returning results from your query rather than the plugin?

from infinite-scroll.

vondwater avatar vondwater commented on April 27, 2024

My query returns a total of 2 pages, I've printed that out after the first
part of the table. After the second page my query does nothing anymore he
just keeps repeating the last values. Could it be that there is a problem in
the retrieve function of the infinite scroll plugin? I've enabled debug and
it gave me
["heading into ajax", ["/ecommerceV2/index.php/nl/ecommerce/index?page=", ""
]] but where is the page number here?

2011/6/15 lukeshumard <
[email protected]>

In my console, I see that it's requesting ?page=2, ?page=3, ?page=4 and so
on. Maybe this is something to do with how you're returning results from
your query rather than the plugin?

Reply to this email directly or view it on GitHub:
#49 (comment)

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

That path in debug is an array split into 2 parts. Where the separation is (?page=) is where your page number goes in. The second value of the array is whatever would come after. Yours is blank, so nothing comes after it.

What comes up in mine is ?page=2, ?page=3, ?page=4 and so on. If I go to http://extranet.lunasoftbe.com/ecommerceV3/index.php/nl/login/test?page=4, it's bringing up the values that you say are repeated. In your backend solution, you just need to sort it so that if there are no more results, it should result in a 404.

from infinite-scroll.

vondwater avatar vondwater commented on April 27, 2024

Thank you for the help. It was indeed the 404 response that I needed.
Everything is working fine now.

2011/6/17 lukeshumard <
[email protected]>

That path in debug is an array split into 2 parts. Where the separation is
(?page=) is where your page number goes in. The second value of
the array is whatever would come after. Yours is blank, so nothing comes
after it.

What comes up in mine is ?page=2, ?page=3, ?page=4 and so on. If I go to
http://extranet.lunasoftbe.com/ecommerceV3/index.php/nl/login/test?page=4,
it's bringing up the values that you say are repeated. In your backend
solution, you just need to sort it so that if there are no more results, it
should result in a 404.

Reply to this email directly or view it on GitHub:
#49 (comment)

from infinite-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.