July 22, 2006
Finally you can make a comment to my blog posts, you are welcome to try it out a couple of times on this blog post, i know you will love it (Ajax, fading effect etc).
I could properly have done a comment function via the AutoForm in a hour, but why make life so easy :-)
When you click the "Post comment" I use the Ajax.NET Professional library, when the post is created I return all the comment to the current blog post and update the page (without postback/reload), I actually return one string containing xhtml for the comments, I could have returned a json object representing every comment, but it's better performance (Ahax), just to return a html string so I just need to do a innerHTML and not use allot of DOM creating nodes etc.
For the client scripting I use the prototype javascript library and the script.aculo.us for the fading effect.
One of the advantage of Ajax, is that I don't get spam comments from spam bots and Netscape 3 users.
Go ahead, make a comment (make a preview before posting :-))