For some reason, the contents of the text area are not being sent in the
post. In fact it doesn’t appear that the form is being serialized at
all. What am I doing wrong?
For some reason, the contents of the text area are not being sent in the
post. In fact it doesn’t appear that the form is being serialized at
all. What am I doing wrong?
Hi,
I’ve been struggling with the same problem for a few days now. The api
docs that describe the “:with” parameter to observe_field/form are
cryptic, to say the least.
After trying a number of semi-random strings I just now hit on a
solution that seems to work: passing the string “value=value” as the
:with param causes all of your form variables to show up in the POST
params. I pass this on with the caveat that I haven’t the faintest
idea why this works, and with no warranties that it won’t break in the
future.
hth,
James
–
James H.
Web application developer
Vancouver, BC
“Developing a coherent political analysis is in many respects
contingent upon an ability to connect one context to another, a
process not dissimilar to playing the kid’s game of dot-to-dot.”
Yes, it’s definitely not working as advertised. One thing I’ve been
trying to get working is having the response to the form observer
inject new input elements into the form, and then have those new
elements be ‘observed’ as well: no joy, though, it will only fire on
events on form elements that were there when the form was first
rendered.
Thanks for pointing out the serialize method above; I thought it might
help with this issue but no. I’ve hardcoded this snippet into my app
as well.
Has this been reported as a bug on the rails trac?
–
James H.
Web application developer
Vancouver, BC
“Developing a coherent political analysis is in many respects
contingent upon an ability to connect one context to another, a
process not dissimilar to playing the kid’s game of dot-to-dot.”
For some reason, the contents of the text area are not being sent in the
post. In fact it doesn’t appear that the form is being serialized at
all. What am I doing wrong?
Hi,
I’ve been struggling with the same problem for a few days now. The api
docs that describe the “:with” parameter to observe_field/form are
cryptic, to say the least.
After trying a number of semi-random strings I just now hit on a
solution that seems to work: passing the string “value=value” as the
:with param causes all of your form variables to show up in the POST
params. I pass this on with the caveat that I haven’t the faintest
idea why this works, and with no warranties that it won’t break in the
future.
hth,
James
–
James H.
Web application developer
Vancouver, BC
“Developing a coherent political analysis is in many respects
contingent upon an ability to connect one context to another, a
process not dissimilar to playing the kid’s game of dot-to-dot.”
Yes, it’s definitely not working as advertised. One thing I’ve been
trying to get working is having the response to the form observer
inject new input elements into the form, and then have those new
elements be ‘observed’ as well: no joy, though, it will only fire on
events on form elements that were there when the form was first
rendered.
Thanks for pointing out the serialize method above; I thought it might
help with this issue but no. I’ve hardcoded this snippet into my app
as well.
Has this been reported as a bug on the rails trac?
–
James H.
Web application developer
Vancouver, BC
“Developing a coherent political analysis is in many respects
contingent upon an ability to connect one context to another, a
process not dissimilar to playing the kid’s game of dot-to-dot.”
Ward Churchill, from ‘“A Government of Laws”?’
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.