Comments (8)
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.
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.
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.
Can you try adding the following setting:
pathParse : ["/page/",""]
Let me know what it does :)
from infinite-scroll.
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.
p.s. I just switched it to the non minimised version to aid in debugging.
from infinite-scroll.
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.
I will give it a go, thanks!
from infinite-scroll.
Related Issues (20)
- How can I parse the next/prev links of loaded pages? HOT 1
- standby function with sticky footer HOT 1
- infinite-scroll with websockets
- tile HOT 1
- Items shown and total items under view more button HOT 3
- Fackbook hack
- Infinite scroll + JSON
- Cloudflare mirage data-cfsrc lazy load conflict
- my tumblr theme's images not loading after page 1 (Safari only) - Infinite scroll & load more issue HOT 3
- Feature - Combination with Pagination - Load and Scroll to specific Page
- Page Link Issue
- Card Columns Not Working
- Web App For Iqama status
- Infinite-scroll and Joomla
- View Transitions
- Infinite Scroll + Masonry works only sometimes, sometimes it bugs HOT 1
- prefill loads data endlessly when container has display:none HOT 2
- Deprecating the unload event HOT 2
- Rating of a topic and infinite scroll HOT 1
- Want to create website tool for BCBS Prefix List HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinite-scroll.