Updating ColdFusionBloggers.org - Using CFDIV For Paging
Wednesday, July 25th, 2007So once again I’m messing with ColdFusionBloggers to show off some ColdFusion 8 AJAX goodness.
This time the idea came from Todd Sharp. He suggested making the paging AJAX based. That way when you move from page to page, only the content is loaded. Turns out the change was rather simple.
My original code simply got the data and displayed it inside a layout custom tag. I began by changing my index.cfm page to this:
<cfajaximport tags="cftooltip">
<cf_layout title=”coldfusionBloggers”>
<cfdiv bind=”url:content.cfm” id=”content” />
</cf_layout>
I’ll explain the import in a sec. But basically I moved all of the content into a new file. I then used cfidv and bound it to my new file, content.cfm.
(more…)


