I should begin to say that I have no idea really how exactly ajax works. Although I've used it a couple of times with pre-made WordPress plugins. I saw some examples of ajax entry-loading here on Stack Exchange, I tried to make ajax requests in Craft but just ended up with server errors.
My main goal that I want to accomplish is just to have a news-feed that begin to show 5 entries, a button on the bottom that appends five more.
- Is it best to use jQuery for the Ajax-request?
- How can I load the "next" five entries in a news-feed, so the call doesn't load the latest five entries over and over?
- I've seen that you need to build a specific template for ajax-calls. Is there any good examples of those?
If someone got some advice for me how to accomplish this it would make me so happy! It'd be really nice to learn how it works, so if you got tips of tutorials, working examples, good reads — please share :)