On Tue, Oct 6, 2009 at 2:23 PM, Alexei Spirit <[email protected]> wrote: > > Hi, > > I have some RJS code to update my select fields. It perfectly works on > Firefox, but IE don't want to send params to controller. > > Here is the code in view: > > <%= select("incident","service_group_id", @service_groups,{:selected => > 0},{ > :onchange => remote_function( > :update => "incident_service_id", > :url => {:action => :update_services}, > :with => "'service_group_id=' + this.value") > }) %>
Are you sure that this.value is the way of access a select control current value? Probably IE access it in a different way (as usual) I'd strongly recommend you to access the value using Prototype or jQuery or whatever JS library you're using. -- Leonardo Mateo. There's no place like ~ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

