You're right, the problem was just :with = select_number
Using :with = 'value='+value works.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email
Very nice tool, I didn't know firebug.
I think I've found the reason of the problem: When you update fields
of a form, they forget to which form_tag they belong. (Why do we need
a form_tag for these select_tags, as they are only used for setting
other fields by onchange?)
Updating another
1. You don't need the form tag if you are only updating by ajax.
Html purists might argue the point!
2. You can use any element to update from a partial. For example,
give the tr an id as in:
tr id='update_me'
then in the controller,
page.replace_html :update_me etc.
3. Sometime I
Without the form_tag, everything's fine with IE 7.0. But with firefox
3.0.3, I don't even get a request. (javascript completely enabled)
table cellpadding=10
tr id='test'
%= render :partial = 'test' %
/tr
/table
_test.html.erb:
td
%= select_tag :select_number,
sorry, I still didn't find a solution. I don't have much experience
with javascript.
Luma
On 16 Okt., 18:10, Flo [EMAIL PROTECTED] wrote:
Hey, do you solved your problem or found a work-around?
If so I'm interested in it because I do have a similar problem.
Thanks.
Flo.
5 matches
Mail list logo