Paged Comments: Ajax Style!

I’m late on the Ajax bandwagon—and still not sure if I really want to be on it—but I thought it was about time to see what all the fuss was about. So, seeing as I have nothing better to do this Christmas, I went and grabbed CPAINT and have spent my time hacking away on a very flaky and highly experimental Ajax implementation of my Paged Comments plugin. It’s not (yet) as fancy and exciting as some of the Ajax demos available on the web, and may not even work for some of you, but at least it’s a start! 🙂

Initial thoughts:

  • Love the tiny HTTP response produced—returning anything other than the requested comments now seems overkill
  • Without providing a ‘show-all’ link, the comments cannot be reached by search engine spiders
  • I could keep the existing behaviour and include a ‘smart’ Ajax mode which would kick in when a capable browser is detected—maybe using Javascript to rewrite comment-page URLs, pointing them to the Ajax function instead

I’ll probably add to these as I come across problems. In the meantime, try Paged Comments, Ajax style!

There’s plenty of discussion on Ajax floating around on the web. I’ll be adding links to interesting ones I come across (mainly as a reminder to myself to read them).

Update (2005-12-24): Now using script.aculo.us for fancy effects better interaction feedback. 🙂

This entry was posted in General. Bookmark the permalink. Both comments and trackbacks are currently closed.

49 Comments

  1. ZEO says:

    Can’t wait for this to be release.

  2. jakob says:

    Wow! Can’t wait.

  3. CountZero says:

    I love the idea of ajax enhanced paged comments…
    If there’d be a chance to integrate your ajax paged comments code into my “binary blue” wordpress theme, just let me know, and i’ll give it a try.

  4. tinyau says:

    I hope this ajax version could be released asap.

  5. Me says:

    Nice this Ajax stuff…

  6. gris says:

    coooool thing…keep on coding…!

    cheers,
    gris

  7. CountZero says:

    FYI: I have succeeded to implement full AJAX enhanced paged comments support into the Binary Blue theme suite – no additional plugin needed 😉

  8. […] The idea for an AJAX enhanced version of paged comments came to my mind when I saw Keyvan’s ajAX paged comments demo, but unfortunately he didn’t make it to a published plugin yet, so I had to reverse engineer the facility in the commonly used clean room way (that means: look what’s going on and then rebuild the functions from scratch). I had to do this especially because I didn’t want a third AJAX library in the theme package, as a single one (prototype) is more than enough power. […]

  9. tESTERICH says:

    pretty Cool stuff, thanks for developement

  10. Elliot says:

    You’re late? I haven’t even gotten into it yet!

  11. sk says:

    when do you expect to release this to the public?

  12. Keyvan says:

    sk: I’ll be working on it very soon but don’t know when it’ll be ready. The code for the current implementation is pretty ugly and not easy to package up and release – which is why I’ve only got the demo up and no source.

  13. Claire says:

    Is there a way to post guestbook entries from most recent to oldest? [ie: start from 14 to 1, instead of 1 to 14]

  14. Halil says:

    Hi, is there any progress with this plug-in? I cant wait to use it on my blog 🙂

  15. Andy says:

    How situation with script? (:

  16. M says:

    C’mon dude release the code! It’s been over a year

  17. milko says:

    Hey guy,

    what’s up with the ajax comments???

  18. Torben says:

    Awww comeon gief code 😛

    It seems to work, now, release it 😛

  19. Keyvan says:

    Thanks for the interest everyone.

    I really wish I could release it, and I would if it was in a form that I could package up and release. But to be honest I haven’t had time to work on it. There’s no easy way I can work the Ajax code into the current version of the plugin, so, until I find more time, I don’t think you’ll be seeing a release anytime soon. Sorry. 🙁

  20. OZONO says:

    Cool. I neede it too much!!!!

  21. umut says:

    good job nice code!

  22. Chris says:

    i want

  23. testing123 says:

    this is a test

  24. Bla says:

    Bla bla bla

  25. wefsdf says:

    sdfsdf

  26. Mathijs says:

    Nice

  27. sdds says:

    sqdsqds

  28. ThunderPuss says:

    Nice!

  29. forty says:

    testing

  30. Alexander says:

    Testing this mother

  31. Anonymous says:

    vxccxcxc

  32. Name says:

    Testing

  33. Max says:

    Can I see it?

One Trackback

  1. […] The idea for an AJAX enhanced version of paged comments came to my mind when I saw Keyvan’s ajAX paged comments demo, but unfortunately he didn’t make it to a published plugin yet, so I had to reverse engineer the facility in the commonly used clean room way (that means: look what’s going on and then rebuild the functions from scratch). I had to do this especially because I didn’t want a third AJAX library in the theme package, as a single one (prototype) is more than enough power. […]