I originally submitted this as a guest on the forum interface to the
mailing list. but i guess it never got OK'd...
i'm having this same problem, all my form fields do have names and id's
and thier all differant names and so on.
heres what i have
1.) autocomplete form that takes a company name from a database
2.) after something is selected from the autocomplete it calls a
function that calls "Ajax.Updater" and gets some checkboxes that are
made from a list of contacts
3.) that list of checkboxes is placed in a div that IS within the form
tags
4.) i submit and show the $_POST vars (it's php) and none of the
checkboxes are there.
heres what the check boxes look like when thier displayed by JS
<div><label><input type=\"checkbox\" name=\"client_ids[]\"
id=\"client_ids_350\" value=\"350" /><i>Contact Name</i></label></div>
so everything is there. it's just like the form won't submit elements
that were added to it's structure AFTER the page was rendered.
is there a way to make it "re-read" all the form elements, or is there a
way to send the form and get the values from the ajax added checkboxes.
i'm so lost!
now i'm having even more problems where i have to submit up to 50 inputs
that where created by JS.
Todd Ross wrote:
On 3/9/06, Renso Vargas <[EMAIL PROTECTED]> wrote:
with prototype i fill the dynamicFields DIV with <input> and <select>
tags, but when i submit the form the values of dynamic fields are not send.
I'd start by making sure that all of the fields you're adding
dynamically, that are meant to be submitted to a server later, have a
name attribute.
Todd
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs