Page 4 of 4
Re: Automatic page adding more items, ajax pagination?
Posted: Fri Jul 17, 2015 10:00 am
by Celauran
I'd defer to something like this:
http://googlewebmastercentral.blogspot. ... endly.html
tl;dr Use infinite scroll, just don't
only use infinite scroll
Re: Automatic page adding more items, ajax pagination?
Posted: Fri Jul 17, 2015 12:23 pm
by simonmlewis
How...??
Do you mean add a list of "page numbers" as well?? If you do, that would not work... would it?
Re: Automatic page adding more items, ajax pagination?
Posted: Fri Jul 17, 2015 12:26 pm
by Celauran
simonmlewis wrote:Do you mean add a list of "page numbers" as well??
That is precisely what I mean.
simonmlewis wrote:If you do, that would not work... would it?
Why not?
Re: Automatic page adding more items, ajax pagination?
Posted: Fri Jul 17, 2015 12:34 pm
by simonmlewis
So you mean, at the foot of the page, to add the page numbering.
In my pages that use to use that format, the Script use to be:
But with this infinite scrollng, it uses LIMIT in a different way.
Hence, I couldn't use both....
Re: Automatic page adding more items, ajax pagination?
Posted: Fri Jul 17, 2015 6:43 pm
by Celauran
No idea what you mean. I also don't see why you couldn't just wrap the call for these queries into functions and call them separately rather than having everything inline. What one section of your page needs should have absolutely no bearing on what any other section needs.
Re: Automatic page adding more items, ajax pagination?
Posted: Sat Jul 18, 2015 3:14 am
by simonmlewis
I'm lost now, sorry.
I have never called queries into functions.
I think you are saying the links in the footer can run a PHP "select *" query via a function, rather than just the usual way, but I have never done that. So utterly blind to it.
If the code I have submitted can be made to run two queries, based on which is click, that could be rather cool. But for me, I've no idea how to incorporate that.