BlogCFC Print Using DOM Injection

For some reason I clicked the print button on my blog the other day. It opened up a PDF in the tab I was in. Well, I just didn't like that (sorry Ray).

I recently built a print feature for an AJAX heavy project at work. Since this project uses Spry, the detail you see doesn't exist until javascript renders it in the browser. So, I came up with a solution of opening another window and then pushing the rendered contents into it. The new window even has a print.css. So, although it's the same mark-up, it looks different.

If you want to see the code I wrote for work you can check it out here. Just drill all the way into a vehicle and click the print button on the right.

Anyway, I used the same idea to change the print functionality on my blog. I've posted the resulting code and instructions for download here.

If anyone uses it I would love to hear about it.

BlogCFC JS Twitter Pod

I was looking at the Twitter Badges that you can add to your site. I noticed that there was a JS implementation. I thought that would be cool because I could style it to match the rest of the site.

So, I created a new empty BlogCFC pod and pasted in the code that Twitter offered. Well, I have to say I was very un-impressed. It basically is only set up to display the current message and the time it was added. Except there's even a typo. So, it wasn't even showing the date.

After a little investigation, I got it to show the date, which turns out to be the raw date, not the "about x [min|hours|days]" that I was expecting.

Well, I took that as a challenge and began to build out similar functionality to the Flash Twitter badge in my JS Twitter badge.

[More]

Hello World (Wide Web)!

It's my first blog post and I couldn't resist.

And being that it is (my first blog post), I'll introduce myself. My name is Chris Phillips. I'm a Web Application Developer. I work with ColdFusion, HTML, JavaScript, CSS, and SQL every day. I really enjoy my work.

A Little Personal History:

I tried a few other jobs before I fell into Web Development. Most of them were just a poor fit for my particular personality quirks.

Lining up all the parts of a widget at 45% angles on the table before I assembled them really upset my bosses at a previous job. They frequently pointed out that I was slower than the other employees at manufacturing widgets. To which I always responded, "Yes, but my widgets are crafted expertly and lovingly to the exact specifications".

Well, they weren't buying that. So, I started taking Web Design classes. Eventually I found ColdFusion. Now, I think that my attention to detail make me a really good fit for this profession.

Well, that's enough for now. I'll be posting some actual technical content soon.

BlogCFC was created by Raymond Camden. This blog is running version 5.6.002.