CFDiv - Something To Watch Out For
Was just trying to create a super simple dynamic region on a page when I repeatedly received the following error when I loaded the page:
error:http: Error replacing HTML, element not found: comments
I double check everything and my bind statement looks good. View Source however told me something different. CF correctly included the Ajax 'plumbing' bits to create the div and register it, but my div itself was not in the source. Turns out the template I was working with had the following on line 1:
<cfsetting enablecfoutputonly=true>
So since cfdiv actually is creating a div behind the scenes it did not get output to the page because it wasn't surrounded in a <cfoutput>. Seems strange though because none of the other CF tags that generate HTML (IE cfinput) share this behavior. Unless I'm mistaken?



I have put part of the code here
http://www.box.net/shared/luemef88cc
You may download it and have a look.
Notice that when you run the code in IE and FF, you will have a different result when you click on the Join Now button. So far only FF and Opera can render the css inside regForm.cfm, but IE and Safari (Win) just ignore it.
By the way, thanks for your concern and I hope the issue can be solved.