Giter Site home page Giter Site logo

Typo on line 139 about infinite-scroll HOT 8 CLOSED

metafizzy avatar metafizzy commented on April 27, 2024
Typo on line 139

from infinite-scroll.

Comments (8)

samcleaver avatar samcleaver commented on April 27, 2024

I've just downloaded the latest version and don't have any problems with that line:
desturl = path.join( opts.currPage );

That line is defining the desturl variable. join is a javascript function:
http://www.w3schools.com/jsref/jsref_join.asp
What browser are you using?

from infinite-scroll.

unknowndomain avatar unknowndomain commented on April 27, 2024

It appears that was a mistake I have saved a fresh copy from git and the spelling error your right is gone, mistake I made perhaps? however the error I get is still the same...

When you scroll to the end of the page it calls for the next and says this error:
["Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."]
["math:", 3837, 213]
["math:", 0, 213]
["heading into ajax", "/page/1"]
Uncaught TypeError: Object /page/1 has no method 'join'

The site I am having this issue on is: http://thelink.gdnm.org I have enabled debugging in the hope you might take a look at the console and see this issue for yourself...

from infinite-scroll.

samcleaver avatar samcleaver commented on April 27, 2024

Looking it into now, keep debugging on :)
EDIT: Could you replace the minified version with the full version? Makes it a lot easier to debug!

from infinite-scroll.

samcleaver avatar samcleaver commented on April 27, 2024

Can you try adding the following setting:
pathParse : ["/page/",""]

Let me know what it does :)

from infinite-scroll.

unknowndomain avatar unknowndomain commented on April 27, 2024

Issue is still occurring sorry I went to the cinema to see a film with family, didn't see your message till I got out just now...

I just tested it with that extra configuration option, I did see that option before but it wasn't documented so I didn't know if it was a public thing or not, however regardless issue is identical, I am online now so I should be a bit more prompt in my responses.

Thanks for your help,

Tom

from infinite-scroll.

unknowndomain avatar unknowndomain commented on April 27, 2024

p.s. I just switched it to the non minimised version to aid in debugging.

from infinite-scroll.

samcleaver avatar samcleaver commented on April 27, 2024

Heh, I mis-interpreted how that passParse should work and I've been working with the script all day (I think it should be a function that parses the path and returns that array.).
Nevertheless, I've debugged for a bit and spotted the obvious mistake (which are often the hardest to spot!), your initial pagination link must have a 2 in it for it to be recognised.
For example /page/2, it does not recognise /page/1. Change your pagination so that the homepage is page 1 and you're all set.
Let me know if that solves it!

from infinite-scroll.

unknowndomain avatar unknowndomain commented on April 27, 2024

I will give it a go, thanks!

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.