Skip to Content

Submit your nominations for the Luxist Awards' Best in Decor
AOL Tech

peter forde posts

Filed under: Developer, Web services

Endless pages: Ditching the "Next" button

No Next button"Pagination," i.e. turning a long set of, say, search results into a series of pages with "Next" and "Previous" buttons, is no fun. It can be a pain to implement, and is very much a pain to use, and yet it exists on every site that pulls a lot of records from a database. Surely we can't load all of the records at once if there are thousands of them, so is there an alternative? Yes! And I have a feeling some of you have already guessed the magic word--Ajax. Web developer Peter Forde has written an article explaining the "endless pageless" technique, which uses Ajax to automatically and seamlessly load more results from the server as you scroll toward the bottom, which guarantees that you'll never have to click on another "Next" link as long as you live.

You can take a look at the technique in action on this page. This technique isn't brand new, of course--Microsoft, for example, has employed it for a long time on Live.com Image Search--but it's still fairly rare. There's also one caveat that Peter Forde doesn't mention: With his implementation, it's not possible to bookmark or link to a particular point of the results. He cleverly uses cookies to avoid breaking the browser's Back button, but without a permalink the technique still isn't ready for all situations. However, as the technical limitations are overcome, I think we'll be seeing fewer and fewer Next buttons around the web.

Featured Time Waster

The World's Hardest Game 2.0 - Time Waster

So, just how good at time waster games are you? Think you've got the stuff? Well, The World's Hardest Game 2.0 doesn't think you do. Yes, amazingly, it's possible to have a sequel to a game called "The World's Hardest Game". It doesn't seem logically possible, since if the first one was actually the world's hardest, how could another one come along and share the moniker? It made me doubt the name in the first place. That is, until I tried the game. The mechanics of the game are very simple. You are a small red square, ...

View more Time Wasters

Featured Galleries

Defective by Design, London: Protest Pictures
Livescribe Store
Microsoft Security Essentials
Chromium Pre-Alpha on CrunchBang Linux
Safari 4 Beta
10 Firefox themes that don't suck
IE8 RC1
Download Squad at the Crunchies After-Party
Download Squad at the Crunchies
WordPress 2.7
Cooking Mama: Mama Kills Animals
Windows 7 Hands On
Comodo Internet Security
Android First-look: Amazon.com MP3 Store
Android First-look: Twitroid
Google Reader Android
Android Hands-On
Twine 1.0
Photoshop Express Beta
Mozilla Birthday Cake
Palm stuff

 


Follow us on Twitter!

Flickr Pool

www.flickr.com

More Tech Coverage

AOL Radio

Joystiq

TUAW

Daily Finance

Autoblog

Urlesque

Engadget

WoW

Switched.com

FanHouse