Browser Detection using jQuery

After finally getting this blog back up online, the next step was to upgrade to the latest blogCFC version (which ships with the awesome theme you see). After being done with that, I noticed this is the first time I had used the blog with Chrome, and the one thing that didn't work in Chrome is display of the RSS feed. And no better way to remind myself how to accomplish this again in the future than blogging it!

The RSS in IE/Firefox is styled (I believe because of the in built RSS reader?):

The RSS in Chrome is not styled:

One good solution to this would be to just use the Feedburner link for the RSS feed (http://feeds.feedburner.com/ColdFusionRIA) and it displays good in all browsers. But I saw it as a good opportunity to use jQuery to redirect the click based on the browser. So, now if you click the RSS link on the navigation, it will show the default blogCFC RSS in IE/Firefox but for Chrome it will go to the feedburner link.

Now the main issue I encountered (and the solution is documented at various places on the internet) is that the built in jQuery browser detection doesn't differentiate between chrome and safari. You can see this at work here (try it with different browsers)

On Chrome, the default output will detect safari. So some changes had to be made to that.

Really simple to do using jQuery too. Let's look at the code.

[More]

New Look, New blogCFC Skin

With the release of ColdFusion 9, and me looking forward to blogging more I decided to change the look of the blog.

The original design is called Arclite created by Digital Nature.

A short preview of how this skin works. Normal Text you have seen by now.

Lets see some Code action:
view plain print about
1<cfoutput>
2First Post!!
3</cfoutput>

[More]

blogCFC - Add Simple Sort Functionality to Pages (Navigation Links)

I added a new page today (Purpose of Blog) and while doing so realized that the Navigation is sorted using the Page Title by default.

Since my blog is using a webhost and not a local computer, I thought best thing for me to do is provide the admin an easy way to specify sort order for the navigation links. This is actually really easy to do, no complex code needed. I thought I would share it anyway.

[More]

/* ChartBeat Testing */