<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000256.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T22:19:54</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#51272" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#46383" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#43458" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#42479" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#40028" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#39687" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#38669" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#37917" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#34081" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#33197" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#29178" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28939" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28152" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28117" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28075" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#51272">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#51272</link>
		<description>Hi All,&lt;br /&gt; This is a late post, but i have found another issue that dosnt seem to be on this page.&lt;br /&gt;&lt;br /&gt;In normal HTML forms, if you submit the form, then refresh the action page, the form structure is reposted.&lt;br /&gt;This is NOT true in flash forms. Be careful not to use form vars on the action pages of flash forms without first testing for their existance. This has caused me tons of problems and i dont understand why it dosnt work.&lt;br /&gt;&lt;br /&gt;give it a try the next time you post a flash form.&lt;br /&gt;&lt;br /&gt;tim</description>
		<dc:creator>nicetim</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-07-27T10:33:40</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#46383">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#46383</link>
		<description>Be careful when using &quot;_date&quot; in the names of your input tags.  Doing so can generate a &quot;Form entries incomplete or invalid.&quot; error.  Here's a small example to illustrate the problem:&lt;br /&gt;&lt;br /&gt;&lt;cfform name=&quot;test&quot; action=&quot;&quot;&gt;&lt;br /&gt;	&lt;input type=&quot;text&quot; name=&quot;story&quot; value=&quot;some value&quot;&gt;&lt;br /&gt;	&lt;input type=&quot;text&quot; name=&quot;story_date&quot; value = &quot;some other value&quot;&gt;&lt;br /&gt;	&lt;input type=&quot;submit&quot; value=&quot;submit&quot;&gt;&lt;br /&gt;&lt;/cfform&gt;&lt;br /&gt;&lt;br /&gt;This will throw an error.</description>
		<dc:creator>clone45</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-03-24T10:08:12</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#43458">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#43458</link>
		<description>Starting with the ColdFusion MX 7 Updater, Flash forms  support the following:&lt;br /&gt;- onFocus and onBlur events&lt;br /&gt;- onLoad attribute, which means that you can run initialization ActionScript for the form</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-12-19T10:55:30</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#42479">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#42479</link>
		<description>I spent some time messing with the back/forward button flash forms issue ... &quot;The form data has expired, please reload this page in your browser&quot; ... I could not get the timeout parameter of CFFORM to work for me.  In the end, I used someone else's idea of javascript to test for a cookie and then refresh the page if cookie found.&lt;br /&gt;http://forums.devshed.com/t235953/s.html&lt;br /&gt;(you need to add 'refreshPage();' to trigger the function)</description>
		<dc:creator>Cheese_Man</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-11-18T14:05:31</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#40028">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#40028</link>
		<description>In working around bug 59602 (broken onsubmit functionality) mentioned on 2/17/05 (sthompson), 2/18/05 (halL), and 5/10/05 (doxx), I would caution against using the work-around suggested.  The problem is that once the bug is fixed, the work-around will cause an infinite loop.  This is because the onsubmit code is inserted into the body of _CF_checkCFForm_1, which will include a call to _CF_checkCFForm_1...&lt;br /&gt;&lt;br /&gt;Where possible, use the onvalidate attribute in &lt;cfinput&gt; instead.  If you need a general purpose validation block not associated to a specific element, you could try the following:&lt;br /&gt;&lt;br /&gt;1) Add a javascript function like the following:&lt;br /&gt;&lt;br /&gt;&lt;script language=&quot;javascript&quot;&gt;&lt;br /&gt;&lt;!--&lt;br /&gt;function form_onvalidate(form, input, value) {&lt;br /&gt;    // ignore 'input' and 'value' attributes, since they apply only to the hidden field.&lt;br /&gt;&lt;br /&gt;    var bValid = true;&lt;br /&gt;&lt;br /&gt;    // validation code goes here.&lt;br /&gt;    // Make sure to set bValid = false if you do not want the page to be submitted.&lt;br /&gt;    &lt;br /&gt;    // if you are generating your own error messages, include this line to  ensure&lt;br /&gt;    // that the default error message generated by CFMX for validation_hook will&lt;br /&gt;    // not be displayed.  Otherwise, if you have a single error message, you can&lt;br /&gt;    // remove this line and use the 'message' attribute in the in the hidden input field.&lt;br /&gt;    if(! bValid)  _CF_error_fields[input.name] = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;    return bValid;&lt;br /&gt;}&lt;br /&gt;--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) Add the following to the end of cfform:&lt;br /&gt;&lt;br /&gt;&lt;cfinput type=&quot;hidden&quot; name=&quot;form_validation_hook&quot; onvalidate=&quot;form_onvalidate&quot;&gt;&lt;br /&gt;&lt;br /&gt;3) Make sure to remove the onsubmit from &lt;cfform&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: this does not interfere with any other &lt;cfinput&gt; elements that is marked as required.  Those will still be validated as expected.</description>
		<dc:creator>MARMC WebMaster</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-27T10:43:55</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#39687">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#39687</link>
		<description>No screen name,&lt;br /&gt;&lt;br /&gt;To have the Submit button submit the Flash form when the user presses the Enter key just do this...&lt;br /&gt;&lt;br /&gt;&lt;cfinput&lt;br /&gt;        type=&quot;submit&quot;&lt;br /&gt;        name=&quot;submit&quot;&lt;br /&gt;        value=&quot;Submit&quot;&lt;br /&gt;        onkeyup=&quot;submitForm();&quot;&gt;&lt;br /&gt;&lt;br /&gt;Of course, the Flash form itself needs to have focus first, but if the user has been typing into the form it probably will.</description>
		<dc:creator>dhoule</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-20T07:23:58</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#38669">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#38669</link>
		<description>Tip: You might want to take a look at the article &quot;Advanced Flash Forms Techniques&quot; here:&lt;br /&gt;http://www.macromedia.com/devnet/coldfusion/articles/adv_flashforms.html</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-08-15T10:02:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#37917">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#37917</link>
		<description>I just saw some cool Flash form discussions at http://www.asfusion.com/blog/. Check it out if you get a minute.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-26T11:45:45</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#34081">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#34081</link>
		<description>It'ssimple to have multiple submit buttons and execute different &lt;br /&gt;repsonsed based on which is pressed. Just add a different name &lt;br /&gt;attribute to each button and test for it's existance in the response &lt;br /&gt;page. If it exists, then that button was pressed and you can do what &lt;br /&gt;you want for that user input.&lt;br /&gt;&lt;br /&gt;i.e.&lt;br /&gt;&lt;br /&gt;&lt;cfinput name=&quot;submit&quot;  type=&quot;submit&quot; label=&quot;Update&quot; value=&quot;Update&quot; &lt;br /&gt;&gt;&lt;br /&gt;&lt;cfinput name=&quot;deleteIt&quot; type=&quot;submit&quot; label=&quot;Delete&quot; value=&quot;Delete&quot; &lt;br /&gt;&gt;&lt;br /&gt;&lt;br /&gt;then, in the response page:&lt;br /&gt;&lt;br /&gt;&lt;cfif IsDefined(&quot;FORM.update&quot;)&gt;&lt;br /&gt;      &lt;!--- update action goes here ---&gt;&lt;br /&gt;&lt;/cfif&gt;&lt;br /&gt;&lt;cfif IsDefined(&quot;FORM.deleteit&quot;)&gt;&lt;br /&gt;      &lt;!--- deleteit action goes here ---&gt;&lt;br /&gt;&lt;/cfif&gt;</description>
		<dc:creator>FEW</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-05-30T09:33:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#33197">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#33197</link>
		<description>Responding to the 2/18/05 comment from halL :&lt;br /&gt;&lt;br /&gt;If your javascript function return a boolean value (true or false) your onSubmit attribute look like following statement:&lt;br /&gt;...&lt;br /&gt;&lt;cfform onSubmit=&quot;return ( myfunction() &amp;&amp; _CF_checkMyCFForm(this) )&quot;&gt;&lt;br /&gt;&lt;br /&gt;because this attribute should return only one value...&lt;br /&gt;...</description>
		<dc:creator>doxx</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-05-10T04:36:04</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#29178">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#29178</link>
		<description>This page neglects to mention that  cfform height/width are required for flash forms, if they are used inside of a table.  I have entered this into our bug tracking system as bug number 59900.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-07T10:12:13</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28939">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28939</link>
		<description>Issue=clicking the Back button after submitting a Flash form causes the data submitting by the form to be lost. Setting the timeout attribute in the CFFORM tag to 60 doesn't help. Here's the code.&lt;br /&gt;&lt;br /&gt;&lt;cfform name=&quot;testForm&quot;&lt;br /&gt;	method=&quot;post&quot;&lt;br /&gt;	action=&quot;action.cfm&quot;&lt;br /&gt;	format=&quot;flash&quot;&lt;br /&gt;	timeout=&quot;60&quot;&gt;&lt;br /&gt;&lt;cfinput type=&quot;text&quot; name=&quot;firstName&quot; size=&quot;30&quot;&gt;&lt;br /&gt;&lt;cfinput type=&quot;text&quot; name=&quot;lastName&quot; size=&quot;30&quot;&gt;&lt;br /&gt;&lt;cfinput type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;&gt;&lt;br /&gt;&lt;/cfform&gt;&lt;br /&gt;&lt;br /&gt;Macromedia's documentation indicates that should all that is</description>
		<dc:creator>davidsimms</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-03T08:04:35</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28152">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28152</link>
		<description>Responding to the 2/17/05 comment from sthompson:&lt;br&gt;&lt;br&gt;Both of the issues you raise are bugs.&lt;br&gt;&lt;br&gt;The first issue, where you cannot use standard cfform validation if you specify an onSubmit attribute (bug number 59602), has the following workaround:&lt;br&gt;To enable standard cfform validation when you use an onSubmit attribute, add the following statement to the onSubmit attribute, replacing CFFORM_1 the value of name attribute of your form. &lt;br&gt;&lt;br&gt;return _CF_checkCFFORM_1(this)&lt;br&gt;&lt;br&gt;For example:&lt;br&gt;&lt;br&gt;&lt;cfform onSubmit=&quot;myfunction();return _CF_checkMyCFForm(this)&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;We have entered a bug (number 59844) for the change in behavior of the scrptSrc attribute, which now specifies a directory, not a file.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-02-18T10:32:12</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28117">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28117</link>
		<description>In MX 6.1, when you specify an onSubmit attribute in &lt;cfform&gt;, ColdFusion calls the CF JavaScript validation, then calls the code you specified in the onSubmit attribute.&lt;br /&gt;&lt;br /&gt;In MX 7, if you specify the onSubmit attribute, ColdFusion will only call the function you specify and not perform any cfform validation. This is a significant difference.&lt;br /&gt;&lt;br /&gt;Further, the scriptSrc attribute in 6.1 pointed to a file. In 7, it points to a path. This essentially breaks any cfform code. I think it would have been better to add a scriptPath attribute, then deprecate scriptSrc.</description>
		<dc:creator>sthompson</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-02-17T16:50:53</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28075">
		<title>coldfusion/7/htmldocs/00000256.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000256.htm#28075</link>
		<description>In the cfform tag, you must end the background-color style definition with a semicolon (;), even if it is the only or last definition in a style attribute.&lt;br&gt; &lt;br&gt;While, currently, this is the only case in Flash forms where the semicolon is always required, you should end all style definition with semicolons, even if they are the only or last definition in the style attribute. &lt;br&gt;For example, you should do the following:&lt;br&gt;&lt;br&gt;&lt;cfform format=&quot;flash&quot; method=&quot;post&quot; name=&quot;xxx&quot; height=&quot;300&quot; width=&quot;500&quot; style=&quot;background-color:##FF00FF; indicatorGap:25;&quot;&gt;&lt;br&gt;&lt;br&gt;And not the following:&lt;br&gt;&lt;br&gt;&lt;cfform format=&quot;flash&quot; method=&quot;post&quot; name=&quot;xxx&quot; height=&quot;300&quot; width=&quot;500&quot; style=&quot;background-color:##FF00FF; indicatorGap:25&quot;&gt;</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-02-17T08:44:57</dc:date>
	</item>
	</rdf:RDF>

