LGF Comments: Now with Ajax

Charles Johnsonfollow me on twitter
Wed Jun 20, 2007 at 2:16 pm PDT • Views: 282

I’m ready to unveil the first step in the redesign of our commenting system, and I’m sure this is going to be popular with the lizard army.

One of the coolest things about Ajax technology is that it lets you reload only information that needs to be updated. This means you don’t have to reload an entire page’s worth of data when all you want to change is one section.

It’s a classic win-win improvement, because it means less data has to be transferred over the internet—sometimes much less. So our server doesn’t work as hard, and you get the new information much faster.

I’m applying this concept to our comments now, and the new feature is a great example. Below the last comment in each thread you’ll now find an unassuming little button that says, plaintively, ‘new comments.’

If you click that button in an active thread, and there are new comments posted since the last time you loaded the page (or clicked the button), the new comments simply appear automagically at the bottom of list. No more page reloads to follow an interesting thread. Woo-hoo!

It has the potential to radically change the way blog comments work; the speed lets it feel almost like a chat system.

The best is yet to come; this version does not use Ajax for the posting of comments. That’s next on the to-do list. (It’s a bit more complex.)

But this ‘proof of concept’ version is useful enough that I wanted to turn it loose and let it roam free.

Advertisement

790 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Leave blank if devoid of snark.

TwitterFacebook
LGF Pages
Recent Pages

researchok
Proposed Mosques Spark Opposition in Some U.S. Communities: 'Don't look at me just as a Muslim, look at me as an American'
40 minutes ago
Views: 31 • Comments: 0
Tweets: 0 • Rating: 0

MikeySDCA
How an 11-Year-Old Survived the Houla Massacre - the Atlantic Wire
1 hour, 22 minutes ago
Views: 43 • Comments: 0
Tweets: 0 • Rating: 1

Randall Gross
Fairbanks Militia Leader Compared to Cult Leaders
2 hours, 6 minutes ago
Views: 74 • Comments: 0
Tweets: 0 • Rating: 1

Haywood Jabloeme
SWATting the Ericksons
18 hours, 20 minutes ago
Views: 203 • Comments: 2
Tweets: 0 • Rating: -3

Mostly sane, most of the time.
So wake up and notice already
18 hours, 29 minutes ago
Views: 124 • Comments: 0
Tweets: 0 • Rating: 1

Daniel Ballard
Late Afternoon Light-Kalanchoe
1 day, 22 hours ago
Views: 215 • Comments: 0
Tweets: 0 • Rating: 5

Eclectic Infidel
City College of San Francisco Budget Update
1 day, 23 hours ago
Views: 253 • Comments: 0
Tweets: 0 • Rating: 1

Aigle
National Geographic Traveler Veers Off Track
3 days, 4 hours ago
Views: 887 • Comments: 27
Tweets: 26 • Rating: -6

MichaelJ
Apple TV Slated to Debut in December?
3 days, 5 hours ago
Views: 315 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
3 days, 6 hours ago
Views: 388 • Comments: 1
Tweets: 0 • Rating: 4

 Frank says:

Whatever you have to do to have a good time, let's get on with it, so long as it doesn't cause a murder.