ColdFusion/Spry Kit Proof of Concept
So – in case folks are curious – I now have both a dishwasher and the Internet back at my house. I feel like I’ve returned to the modern world. (Yes, I’m spoiled.)
Last night instead of my normal useless browsing, I worked up a quick set of tags that will make it easier for folks to use Spry widgets. So for example, to create tabs (with the not yet officially released Spry Tab code), you can do this:
<cf_page title="Tab 1">
<cf_page title="Tab 2">
Accordions are much more difficult:
<cf_page title="Page One">
This is the content for the first accordion panel.
<cf_page title="Page Two">
This is the second page with some dynamic content, <cfoutput>#timeFormat(now())#</cfoutput>
This all stemmed from a long talk I had with Charlie Arehart about CF and Spry and he will be working on this project as well. The project is being hosted – where else – at RIAForge: http://cfspry.riaforge.org
I also have some ideas for how to work with Spry datasets as well – but that is still way in the planning stages.
p.s. I said the code was a bit ugly – and it is – but check out how the custom tags are written, especially page.cfm. Notice how it checks for the parent and based on this can check to see if it properly wrapped. Custom tags are cool. Don’t let them CFC folks fool ya!
Raymond Camden, email@example.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.