I think it means the form tag name:
<cfform class="SearchForm" id="SearchForm" action="" name="SearchForm">
Sergii
2010-03-05 13:12:14
I think it means the form tag name:
<cfform class="SearchForm" id="SearchForm" action="" name="SearchForm">
You do not have to have a name attribute on a form for AJAX to work properly (including any ColdFusion generated AJAX). Here is the relevant information from the name attribute of the cfform element:
In HTML format, if you omit this attribute and specify an id attribute, ColdFusion does not include a name attribute in the HTML sent to the browser; this behavior lets you use the cfform tag to create XHTML-compliant forms. If you omit the name attribute and the id attribute, ColdFusion generates a name of the form CFForm_n where n is a number that is assigned serially to the forms on a page.
Short answer: keep an id, remove the name attribue, and your page will validate. Don't forget that id must be unique across all elements in the page.