Today's update to ColdFusionBloggers.org adds a new Contact form to the site. Unlike the traditional contact form, this one is entirely Ajax based. Hop over to the site and click on "Contact" to see what I mean. The idea for this came from Todd Sharp.
The idea is simple. Instead of linking to a contact page, I used the JavaScript API in ColdFusion 8 to create a new window:
function showContact() {
ColdFusion.Window.create("contact","Contact Us","contact.cfm",{center:true,modal:true,draggable:true,width:550,height:375})
}
The first attribute names the window, the second gives it a title, the third assigns the URL, and the last argument is an set of options for the window.