Recent
Articles |
Getting The Value Of AJAX-ified Controls I ran into a problem last night trying to use JavaScript to read the value of a rich text field. I had assumed I could use the normal syntax I'd use for a form field: document.forms[0].body.value...
Enhancements In ArcGIS At 9.3 & Simple Mashup... ArcGIS Server 9.3, the next version of the popular app will be an incremental release… support for integrated security, better cashing, more options in building...
Adobe's ColdFusion 8 Beta The wait is over and the latest version of ColdFusion has just been released in beta. Code named 'Scorpio' (the eighth sign of the Zodiac) during the development stages, the new release is officially named...
Section 508 & WAI Triple A Accessibility I've been fiddling with accessibility standards and validation today. It's something I've been doing for several years now on many different types of web applications. So today it was time for my blog...
Wordpress 2.2 Is In The House If, like me, you haven't yet upgraded your WordPress blog to version 2.1, don't bother.
You can pass "go", collect $200 and go straight to version 2.2.
Cleaning Up Verity Results (Coldfusion) Christian Ready pinged me a few days ago about an interesting problem he was having at one of his web sites. His search (Verity-based on CFMX7) was returning HTML. The HTML was escaped so the user literally...
Spry 1.5 - New "Session Expired" Support I blogged about the Spry 1.5 preview a few days ago and finally made time to whip up a quick demo of one of the new features - Session Handling
First and foremost - let me explain exactly what is meant by this. As you...
|
|
 |
|
06.27.07
AJAX UI Windows In Coldfusion 8
By Raymond Camden
I've been blogging about new ColdFusion UI controls in ColdFusion 8 and today I'm discussing CFWINDOW.
First - CFWINDOW does not - as you might guess - create a popup window. Which is probably a good thing. The last thing this world needs is another popup window. Instead the tag creates a "virtual" window that appears on top of your page. Let's take a look at a few examples.
At the simplest level, all you need to for a window is:
But if you run this, nothing shows up! Turns out that by default, windows are hidden. To make a window show up right away, you would do:
So this example begins by using cfimage to get information about an image. I use that information to supply a height to my window. I'm also using a few more attributes:
• Title - This sets the title of the window.
• Center - This centers a window.
• Modal - This makes the window have focus - it also does a cool "gray" effect on the rest of the page.
• Resizable - This lets you resize the window.
• Draggable - This lets you enable window moving (I turned it off)
• Height (and Width) - This lets you size the window.
You can see an example of this here.
Continue reading this article.
About the Author: Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.
|