Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Ajax Load Vs Pagination

  • 17-01-2015 12:17AM
    #1
    Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭


    I had this up on stackoverflow with no bites so posting here to see if anyone has any opinions on it?

    Is there a 'right' way to load lists of data/classifieds/articles on a web page, I'm currently loading 8 items via an AJAX request with a view more option at the bottom of these 8 items which once clicked will load the next 8 items and so on until there are no more new items to display.

    I was looking around and there is an almost 50/50 split between Ajax loading and pagination listing for data depending on what website you look at. I'm wondering is it easier for a user to use one or the other or is it all the same these days and it's just down to me as the developer to decided?

    I know that if I go down the pagination route it removes the overhead of any javascript or jquery needed to be used which is a negligible difference.

    Technically it doesn't matter either way to me as I've implemented both options before numerous times.

    This is more a question of user experience then a coding issue.


Comments

  • Technology & Internet Moderators Posts: 28,859 Mod ✭✭✭✭oscarBravo


    From a UX point of view: what happens if I click on "view more" four times, clicked on the fortieth listed item and then hit the "back" button - do I still get the forty items listed?

    If not, paginate please.


  • Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭Ziycon


    oscarBravo wrote: »
    From a UX point of view: what happens if I click on "view more" four times, clicked on the fortieth listed item and then hit the "back" button - do I still get the forty items listed?

    If not, paginate please.
    You'd just get the first 8 results as it stands, point taken, I've seen this happen before and it is terribly irritating.

    Pagination it is, thanks.


  • Registered Users, Registered Users 2 Posts: 7,133 ✭✭✭Talisman


    What you describe is quite similar to infinite scroll with a manual click requirement. Google's recommendation to make infinite scroll search-friendly is to use pagination.


  • Technology & Internet Moderators Posts: 28,859 Mod ✭✭✭✭oscarBravo


    This is an interesting take on the problem.


  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    Ajax history is now a solved problem, and it's really easy to do back button with a correct URL and load ajax content.


  • Advertisement
Advertisement