Visit Twellow.com

New Features for AJAX

A lot of people have requested that we added AJAX to certain parts of BlogEngine.NET, so we did.

Because of the rule of not using third party components, it is implemented using the build-in client-callback feature with some custom JavaScript. All in all very few lines of code was needed.

The calendar widget to the right on this site is now ajaxified for a more smooth navigation between months. The postback reloaded the page every time you navigated to a new month and that was not very cool. The performance is actually pretty descent I think.

The comments have also been AJAX enabled, so that when you write a comment, there is no postback anymore. It makes sure that the browser supports AJAX before enabling it, so that it falls back to normal postback behaviour on old browsers. The invisible CAPTCHA still works when the browser doesn’t support AJAX. I have never seen ajaxified comments on other blogs, so it might be an exclusive feature of BlogEngine.NET.

Unfortunately I cannot share the bits with you because CodePlex is having problems, so there is no access to the source code. CodePlex say they will be back online within 96 hours. In the mean time you can try out the AJAX capabilities of BlogEngine.NET here at this blog.

Comments

 

Digg This! StumbleUpon This!
AddThis Social Bookmark Widget

About the author:
Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.

http://www.madskristensen.dk/
Subscribe to WebProNews


Send me relevant info