I’m having an issue where a form post does not contain the value of the
select box it contains. This problem happens after I update the the
select box using an observe_field triggered ajax call. The result of
the call is to call render :partial to re-generate just the select box
element. If I post before triggering the ajax request I get all the
correct parameters, afterwards, however I only get the commit, action
and controller parameters. I have already cleared the usual suspects,
forms improperly nested, etc.
If I have another element in the form but outside the partial that gets
re-rendered it’s value is submitted with the form. Along this line I
figured I could have an on_change event on my select box so when
someone selects a value it could get assigned to a hidden text field
verify the hidden text field has the correct value (using the Firebug
unmodified value of that hidden text field.
This is what my form looks like (the relevant parts that is). Yes I
know these multiply nested tables for layout are hideous and it has
caused me no end of grief on this project, however, I did not write
them and I have absolutely no control over the html at this point
(short of rewriting it all myself). The first form’s submit is not
relevant to this problem, just the org_id select box which triggers the
re-rendering of the partial inside the td with the userdata id. I have
tried making the target of the observe_field be a div, a span and a td
all with the same effect.