David Walsh on NetTuts: Create a Twitter-Like “Load More” Widget

By  on  
NetTuts Post

My latest article post for NetTuts has been published.  From the intro:

Both Twitter and the Apple App Store use a brilliant technique for loading more information; you click the link and fresh items magically appear on the screen. This tutorial teaches you to use AJAX, CSS, JavaScript, JSON, PHP, and HTML to create that magic. This tutorial will also feature both jQuery and MooTools versions of the script.

It was fun creating the widget using both MooTools and jQuery JavaScript.  Be sure to check it out!

Recent Features

  • By
    Page Visibility API

    One event that's always been lacking within the document is a signal for when the user is looking at a given tab, or another tab. When does the user switch off our site to look at something else? When do they come back?

  • By
    Regular Expressions for the Rest of Us

    Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...

Incredible Demos

  • By
    Introducing MooTools Dotter

    It's best practice to provide an indicator of some sort when performing an AJAX request or processing that takes place in the background. Since the dawn of AJAX, we've been using colorful spinners and imagery as indicators. While I enjoy those images, I am...

  • By
    Build a Slick and Simple MooTools Accordion

    Last week I covered a smooth, subtle MooTools effect called Kwicks. Another great MooTools creation is the Accordion, which acts like...wait for it...an accordion! Now I've never been a huge Weird Al fan so this is as close to playing an accordion as...

Discussion

  1. i’ve been there in nettuts and i saw your tuts. Your such a brilliant man! thanks keep on shinning!

  2. Simon

    Nice to see you on nettuts !
    Great article btw. Can’t wait to try this out :)

    p.s: Is it possible that you forgot the normal css3 border-radius property on #posts-container ? Or maybe it was your intention to use specific webkit and mozilla properties ?

  3. Add to #load-more its parent radius (-webkit-border-radius:10px; -moz-border-radius:10px;) (css border inherit with border-color change will not work properly as it will require more changes & more code).
    I’m always lazy reading such large articles, especially from nettus, but I suppose you explain it nice…

  4. wow, don’t you ever sleep? where do you get the time for 2 nice tutorials per day? Thanks this was interesting…

  5. Great tutorial… One more like this

    ” Twitter like more button ”
    http://9lessons.blogspot.com/2009/04/twitter-like-more-button-with-jquery.html

  6. Oh this is very great! Nice and clean!

  7. Really enjoyed your article David, your skills continue to impress.

  8. Miles

    Hi, brilliant tutorial, I’m newbie with php & mysql but this type and quality of article push me to learn more.
    Can you please show us how we can implement this in wordpress.

  9. Darren

    Great article … but would love to see it fully implemented in wordpress.

  10. Now I’ve been trying for quite some time to implement this into my WordPress installation, but I’ve failed.
    Then I saw a link to someone who customized it to work with WordPress SQL functions, but that didn’t work either.

    So I would love to see a really thorough tutorial and/or description of how to implement this into WordPress. Maybe even how to make it into a easy plugin.

    I believe a lot of people are looking for this functionality in WordPress – would be great!

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!