New AJAX features

Apr 12, 2007

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 new calendar widget and the AJAX comments by posting one.

* Only $4.95/month ASP.NET & Windows 2008 + IIS 7 Hosting! FREE SQL Included

Comments (14) -

Joe
Joe
4/14/2007 12:53:36 AM #

Awesome! This engine is really starting to look good.  Keep it up.

Ted Jardine
Ted Jardine
4/14/2007 5:27:01 AM #

Keeping close tabs on this project. Great stuff! (where do you find the time?)

As to Ajax comments, you can find a real nice implemenation at cpalm.dk/blog/2006/08/03/ajax-and-umbraco.aspx ...now I'm going to post this comment and see how it compares Wink

Ted Jardine
Ted Jardine
4/14/2007 5:30:06 AM #

I'm sure you'll notice above that if there's a dash in the url, the link is broken. I guess once Codeplex is back up I could post a bug report there. And have noticed previously also the repeated comment items ("As to Ajax comments, you can find a real nice implementation at Keeping close tabs...")

Mads Kristensen
Mads Kristensen
4/14/2007 8:30:02 AM #

Ted, it does take some time to build this and when it's a spare time project it can be tough. That is why we are a team now, so that we can speed things up a bit.

I've fixed the URL resolving regex so it now works. The repeated comments was actually fixed with the regex as well. Thanks for letting me know.

Mads Kristensen
Mads Kristensen Denmark
4/14/2007 10:28:28 AM #

Testing the GEO lookup that shows the flag

Al
Al United States
4/14/2007 1:02:17 PM #

Thanks for all your work on this.  I really just wanted to see the new bits at work since CodePlex is down.

TweeZz
TweeZz Slovakia
4/14/2007 2:31:18 PM #

Hi Mads,
2 days after we talked it's already done. Without Anthem. You're impossible.

Manu.

harsha
harsha United States
4/14/2007 6:59:40 PM #

Looks great, thanks for the unique blog features.

Buddy Lindsey
Buddy Lindsey United States
4/14/2007 7:44:42 PM #

Looks great Glad things are comeing along good.  The flags in the comments are cool

Damir
Damir Sweden
4/15/2007 7:55:06 PM #

Hi...
I've just installed this thingie, it looks really promising. Too bad CodePlex is screwed right now so we can't get latest releases and create issues and stuff.
I have one issue rigt now... Images in posts are always placed under the post, I suppose mostly because You can't upload then from the crappy free textbox.
And the code created with it is not so very nice... If You want xhtml anyway...
I there any reason not to use some other, more xhtml-friendly editor? like http://www.fckeditor.net
Or even better, http://www.wymeditor.org

There were some more issues with blog engine, but I guess I'll wait for TeamSystem stuff on CodePlex to start working again...

Very nice blog engine anyway...
Damir

Damir
Damir Sweden
4/15/2007 7:58:00 PM #

Ohh, btw... What Geoip service are you using for comments?

Mads Kristensen
Mads Kristensen Denmark
4/15/2007 8:08:33 PM #

Damir, I have thought about using another text editor, but wasn't able to find one that could syntax color my code samples. They probably can, and I would like a better editor for the engine. FreeTextBox actually produce XHTML nicely, just not in the code view but after the post is saved.

The release 1.03 from CodePlex is very old by now. I stongly suggest you to wait until CodePlex gets back online to download the latest bits. There are many bugs in the 1.03 release that has been fixed and a lot of new features added.

The GEO ip service is free and is found here www.webservicex.net/WCF/ServiceDetails.aspx?SID=46

Damir
Damir Sweden
4/15/2007 9:08:55 PM #

Thanx for such a speedy answer...

I'm waiting for the CodePlex then.

Brian Kuhn
Brian Kuhn United States
4/16/2007 6:50:46 PM #

Good work Mads!

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.