Write strict HTML code with ColdFusion 8 and using AJAX
CFML | (0)
The other day I was struggling with a combination of a form with AJAX parts (using the new cfdiv) in ColdFusion 8. After going trough the code a couple of times I could not see what was wrong and that drove me almost nuts. Here is the code I was having problems with (trimmed for this post):
<table>
<cfform name="mycfform1" >
<cfdiv bind="url:test.cfm" id="test" tagname="div">
</cfdiv>
<cfinput type="text" name="text2"/>
<cfinput type="submit" name="submit">
</table>
</cfform>
and this is the test.cfm content:
<input type="text" name="test" />
The problem here is that the value of the text field within the <cfdiv> are not submitted at all. How come, you might ask? Apparently it ...