Re: Dynamically Added Form Fields Not Submitted
>I've seen this behavior with malformed HTML were the form tags are between >table and tr tags. Check to make sure your HTML is valid. > >-Dan > > >html >children >table rows which are added to a table. The table is within a form. It >works just fine in IE. But, no FireFox. >> >> Dan hit it right on the head! Rather than the table encompassing the form, it should be vice versa. Now it works like a charm. IE must be more forgiving. Thanks for all your input! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347635 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamically Added Form Fields Not Submitted
>I've seen this behavior with malformed HTML were the form tags are between >table and tr tags. Check to make sure your HTML is valid. > >-Dan Dan hit the nail on the head! I simply encompassed the table with the form rather than the form with the table. That did it! Thanks for all your input! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347634 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamically Added Form Fields Not Submitted
I've seen this behavior with malformed HTML were the form tags are between table and tr tags. Check to make sure your HTML is valid. -Dan On Thursday, September 22, 2011, Robert Nurse wrote: > >>Are you actually adding them as elements to the dom or just adding the html >>text to the table data? >>I've had this exact issue and gotten around by properly adding the children >>to the form. >> >> >> >>> > > Hi, > > I've been adding them via DOM calls to table cells which are added to table rows which are added to a table. The table is within a form. It works just fine in IE. But, no FireFox. > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Dynamically Added Form Fields Not Submitted
You need to add the form elements to the form, not the table. .:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Robert Nurse [mailto:rnu...@gmail.com] Sent: Thursday, September 22, 2011 2:48 PM To: cf-talk Subject: Re: Dynamically Added Form Fields Not Submitted >Are you actually adding them as elements to the dom or just adding the html >text to the table data? >I've had this exact issue and gotten around by properly adding the children >to the form. > > > >> Hi, I've been adding them via DOM calls to table cells which are added to table rows which are added to a table. The table is within a form. It works just fine in IE. But, no FireFox. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347625 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamically Added Form Fields Not Submitted
Could you share some code? On Thu, Sep 22, 2011 at 2:48 PM, Robert Nurse wrote: > > >Are you actually adding them as elements to the dom or just adding the > html > >text to the table data? > >I've had this exact issue and gotten around by properly adding the > children > >to the form. > > > > > > > >> > > Hi, > > I've been adding them via DOM calls to table cells which are added to table > rows which are added to a table. The table is within a form. It works just > fine in IE. But, no FireFox. > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347616 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamically Added Form Fields Not Submitted
>Are you actually adding them as elements to the dom or just adding the html >text to the table data? >I've had this exact issue and gotten around by properly adding the children >to the form. > > > >> Hi, I've been adding them via DOM calls to table cells which are added to table rows which are added to a table. The table is within a form. It works just fine in IE. But, no FireFox. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347609 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamically Added Form Fields Not Submitted
Are you actually adding them as elements to the dom or just adding the html text to the table data? I've had this exact issue and gotten around by properly adding the children to the form. On Wed, Sep 14, 2011 at 12:17 PM, Robert Nurse wrote: > > Hi All, > > I've written some Javascript that will dynamically add "file" type inputs > to a form. Or, so I thought. They show up on the page just fine when the > control is clicked. But, when I submit the form to the CF template, those > form fields are absent from the form structure. The added fields are > displayed in a table that is within the form tags. The JS code adds table > rows (TR) then cells to that row then the file inputs to the cells. All > this is done using DOM methods like appendChild(), createElement(), > createTextNode(), etc. Is there some extra step needed in either JS or CF > to make sure the added fields are made part of the form? > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Dynamically Added Form Fields Not Submitted
Try here: http://www.coldfusionjedi.com/index.cfm/2009/1/18/Mixing-client-side-dynamic-forms-with-dynamic-ColdFusion-form-processing -Original Message- From: Robert Nurse [mailto:rnu...@gmail.com] Sent: Wednesday, September 14, 2011 11:18 AM To: cf-talk Subject: Dynamically Added Form Fields Not Submitted Hi All, I've written some Javascript that will dynamically add "file" type inputs to a form. Or, so I thought. They show up on the page just fine when the control is clicked. But, when I submit the form to the CF template, those form fields are absent from the form structure. The added fields are displayed in a table that is within the form tags. The JS code adds table rows (TR) then cells to that row then the file inputs to the cells. All this is done using DOM methods like appendChild(), createElement(), createTextNode(), etc. Is there some extra step needed in either JS or CF to make sure the added fields are made part of the form? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347460 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm