iEntry 10th Anniversary RSS Newsletter Advertising
Join the WebProWorld Forum!
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook
Friday, April 13, 2007

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

 

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/

Publish A Comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
10 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
SEARCH
Popular WPN Business Resources












Subscribe to WebProNews


Send me relevant info