Ajax article posts
# January 26, 2013 at 5:17 pm
Hey, guys. To start off, I really didn’t want anyone to see the new version of my site just yet so I removed a bunch of content to show you my issue.
I have a `News` page that shows the latest 3 posts. If I have more than 3 posts, an arrow shows for you to click to see the older posts. Overall, I’m looking to use Ajax to slide in those posts when clicking the arrow instead jumping to `site.com/news/page:2`. Basically I want it to act like a slideshow when clicking the arrow. However, would it be possible to have a similar pagination like that so it’s linkable?
Does this make sense?
_Note:_ There may be some alignment issues due to not loading the webfonts in.# January 27, 2013 at 8:23 am
@rosspenman @AndyHowells You’re referring to history.js?
I’m using Kirby and saw this post on their forum (see first repy) in response to your second article on this topic.
What I’m concerned about is it Ajaxing my other pages. Would I have to write an if statement to only load the script on a certain page?# January 27, 2013 at 11:29 am
@rosspenman I actually tried Ajaxing my site initially but didn’t want to go that route. I used this plugin but somehow completely forgot about it. I think I’ll try it first since it’s quite easy to implement.
Thanks for your help. I’ll post back if I get it working.# January 28, 2013 at 9:14 am
I’m not sure to understand your problem. If you’re simply looking for a pagination system which doesn’t bloat the URL, there are plenty of them. I personally use [jQuery Pajinate](https://github.com/wesnolte/Pajinate “jQuery Pajinate”).
However I might be off topic.
You must be logged in to reply to this topic.