When Ajax Can Help Your Blog
21 Ajax is a great technology. It allows you to update various aspects of your page, without ever having to refresh.
The Trouble With Ajax
The trouble with Ajax is that it is overused and abused. Many people try to do too much with it. If you’re building a web-app, fantastic, use it all you like! If you’re just building a blog though, remember your restraint.
Good use of Ajax comes in small doses, and only when it helps you achieve your goals. Can it save you the hassle of reloading the same page? Will it let you accomplish simple tasks quickly? If so, then you’re using Ajax well.
5 Common Ways That Ajax Can Help
- Commenting. Whilst it certainly isn’t necessary, Ajax comments are a nice touch. If I have just written a comment, then the odds are good that I’m finished with this page and am looking for somewhere else to go. Reloading a page you want to leave is a bit of a paradox!
- Editing comments. There is a fantastic Ajax WordPress plugin by Ronald Huereca that allows you to edit your comments for a set period time after submitting them.There is another plugin which does the exact same thing, but without the Ajax. Which is better? If all I want to do is correct that little typo, I’m much more likely to do it with the fast plugin, rather than the one that is going to make me reload and resubmit.
- Comment preview. The comment preview plugin creates a live preview of how your comment will look. Very useful for spotting typing errors, especially in comments where you’re writing a little code. The Ajax is much nicer than a MySpace-style “Preview” page being shown after you submit.
- Voting in polls. Polls are fun because you can give an opinion in a matter of seconds. You just click your choice and vote. Ajax speeds that up a little more, making me much more likely to vote again in your next poll.
- Rating systems. Certain blogs have post ratings on them, in particular for those reviewing different products. In the same way that Ajax benefits polls, it benefits these rating systems.
At present, I don’t use Ajax anywhere here on Pro Blog Design. It is rarely ever necessary to use it, but can certainly be an asset. Have you used Ajax on your blog? What for?
Enjoy this post? You should follow me on Twitter!
ajax has even changed the concept of analytics for ever where we are seeing the importance of page views getting lowered too!!
I use Ajax with the plugin Lytebox. I know I know you probably don’t like it but I always like it when I didn’t have to hit the back button if I just wanted to look at an image real quick.
The plugin I use also lets me put HTML in the lytebox environment, which is very useful for the occasion when I want to embed a video but don’t want my web pages to take forever to load.
I’ve had an idea for an Ajax plugin long ago and I have yet to see someone implement it. Here is it how it goes:
Usually, you have finite number of posts on the blog’s homepage. Visitors usually have to click a “previous posts” link to get to an older set of posts. How about we remove this requirement, and we let more posts appear as users scroll towards the end of the homepage.
This has a solid business case:
Suppose a reader stumbles by your site and is now evaluating whether there’s something interesting and worth subscribing to. One of the things he would do is read headlines and posts excerpts, scrolling down for more. When he’s at the end of the page and still not convinced, the likelihood of him clicking the ‘previous posts’ link is very low and he will most likely abandon the site. If we had Ajax, we would automatically append in more posts, hopefully ones that would convince him to convert (i.e., subscribe).
Plus, clicking “previous posts” link require a change in mental context from reading to navigating which can be distracting.
What do you think?
Isn’t that like how live search brought the results Al? I haven’t used it for quite some time but I believe it kept on adding new results upon scrolling down as well. If it wasn’t live search it was another one, I must say the idea was nice but as something which is seen a lot with AJAX it turned out a bit badly.
Whenever the server hang up a bit during the process it resulted in no more results being fetched and the user had to reload in order to get to try all over again.
So the idea of such a system is good, but it might come with some flaws if the server doesn’t catch up on the request quick enough.
It’s one of the biggest problems with AJAX in general if you ask me, the moment it runs stuck it just runs stuck. Browsers don’t know a refresh solely to kick some life back into the AJAX part again.
So for polls and comments it’s nice, but anything further than that I’d keep a bit in mind of what the chances are of it failing and what happens if it does.
As long as those ajax plugs are not 100% safe and secure
I won’t recommend them. Reason: recently a prior client lost a complete database due to an attack on his unsecured ajax form.
AJAX is cool but not always the best choice.
Say for example you’re using Netvibes and you accidently dragged a box to some other location or even closed it, there’s no way to click the BACK button or anything else to undo unless someone builds something that track your steps.
Gautam – True. It kicked up a fair bit of fuss not long ago when Nielson started talking about a time-on-page metric. It will be interesting to see how it all plays out. :)
Michael – There are some great uses of the lightbox technologies, but not all of them are so. I don’t like how none of the image is shown until the whole thing is loaded though. It’s fine with small images, but with larger ones I don’t always have the patience to wait unfortunately. :( (That said, I can definitely think of some fantastic examples of its use! Not least in login forms…)
AL – That’s a pretty interesting idea. Have you ever seen the K2 theme for WordPress? It’s not the same idea, but they do use Ajax for listing those posts.
I like your idea, and I’ve enjoyed seeing that effect in quite a few places. It might even help people with duplicate content penalties (You don’t necessarily want a second/third etc. home page with your post excerpts!).
Slevi – You’re being a little harsh on it. I use a couple of Ajax apps online, and they haven’t frozen yet. Granted, they’re probably well hosted, but they’ve still never had trouble. :)
milo – Ouch. I’m afraid I couldn’t tell you how secure any of them are. I’ve never tested, and even if I had, it’s definitely not my strong point… :(
goldfries – That’s a good example. Little things like that really can get annoying at times.
I think you summed it up when you said “AJAX is cool.” It is, and too many people use it just because of that. :(
I think when I get some time I”m going to do the comment edit ajax plugin you are talking about.
@Michael
Yeah I have. As a matter of fact, my blog’s currently built on K2, but I’ve removed the AJAX-ified previous posts navigation feature of K2 because it wasn’t very intuitive and properly placed.
Just to follow up on my earlier comment, have you guys tried the Pagerization Greasemonky script? I think it pretty much sums up and implements what I’m trying to do with blogs.
MZ – Cool. It’s a very useful plugin, even if I haven’t gotten around to implementing it here either! xD
AL – I don’t use that script, but I do use a similar one to amend the Google search results. It works very well. (And I know what you mean about the K2 one. To a user, it’s the exact same as it is without the ajax. They’re still clicking links. :( )
I’d love to use ajax on my blog, however, I am a complete javascript noob. Nevertheless, I am now trying to create my whole weblog archive in ajax, as part of my webpage redesign.
Previously I used a nifty plugin for expression engine to update comments using ajax. Not that I get that many comments, yet, but it sure helps to brush up the overall appearance of your site, or if somebody posted a ‘halfway’ suitable comment. And it is a lot quicker than using the expression engine interface…
The best use for AJAX on blogs is the “look at your comment as you type it” thing a lot of blogs have. That’s pretty boss.
I would love to have AJAX comments – I’ve noticed recently that everytime I leave a comment (on other blogs) the page reloads and it takes longer than I want to wait for it… it’s nice when a little circle whizzes around (background image thing) and voila, comment is there.
p.s. I was just thinking that a little bit more navigation wouldn’t go astray here. I know you want to keep things to a minimum and not have superfluous stuff on the page, but either a recent posts list or a next/previous post link might be nice. Just so one doesn’t have to go back to the homepage to get somewhere other than the most popular posts.
I use the Edit comments and comment preview. The edit comments is so handy. Few people actually use them however I use them a great deal. So much easier if I need to update a comment (usually my own!) than logging into the back end and finding it in there! Or quickly correcting people’s spelling mistakes.
Dominik – That’s quite an undertaking. I hope you pull it off well. :)
Chris – That was one of the ones I mentioned enyoying as well (I called it “Comment previews.”). Glad we’re agreed!
Kristarella – Agreed. I love the circle loaders for some reason. I’m not quite sure what it is about them, but they’re a really nice animation. :) (And you could be right about the extra navigation. We had a recent posts list originally, but replaced it with popular content. Will have to think about it!)
Sarah – It is very handy! I know that I’ve had to edit a couple of my own comments here on PBD, and I’m just as likely to make mistakes elsewhere. Edit comments is a great thing for readers.
I am very interested in your article, thank you!
On my real estate website, there isn’t anywhere to use ajax, but maybe in the future if I get a blog the comments would be a inviting feature for users. Thanks!
interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article
Ajax is good because you can hide some elements of your web page. The Google Bot is not able to see all these elements and the website can be more related to the subject.
Thanks for this web site. I’m a total fan of food and the culinary arts and save nearly all of the information I can find around the subject. This web page kicks A$$
Iโm agitated all these article directories. It sure would be nice to have every article directory that instantly accepts articles.