Hi,
I'm trying to use observe_field on a textbox to post and update the
value on the 'changed' event, and getting some unexpected behavior. My
textboxes are in a table like this:
<tr>
<td><span class='param_label'><% label %></span></td>
<td><input type='TEXT' id='<% label_id %>'></input></td>
<% h.observe_field(label_id, with="value",
url=h.url(controller="my_controller", action="update"),
complete="$('%s').value =
request.responseText" % (label_id), ) %>
</tr>
My controller's 'update' method looks like this, for debugging:
def update(self):
m.write(str(params))
The response back, if I type "foo" in the textbox, is:
{'foo': '', '_': ''}
According to the Rails and Webhelpers docs, I would expect the params
dict to contain:
{'value': 'foo', ...}
What am I doing wrong? Or is this a bug in Pylons I should work
around?
Thanks,
Casey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---