[Rails] Re: interacting select_tags using onchange

2008-10-24 Thread Luma
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

[Rails] Re: interacting select_tags using onchange

2008-10-23 Thread Luma
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

[Rails] Re: interacting select_tags using onchange

2008-10-23 Thread tonypm
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

[Rails] Re: interacting select_tags using onchange

2008-10-23 Thread Luma
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,

[Rails] Re: interacting select_tags using onchange

2008-10-17 Thread Luma
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.