Brandon Keepers wrote: > On Mon, Dec 29, 2008 at 11:17 PM, Scott Kulik > <rails-mailing-l...@andreas-s.net> wrote: >>>> >> another check box the first check box row gets highlighted. >> >> any idea what could be causing the incompatibility with IE? > > Try adding `this`: > > <%= check_box_tag :task, 1, false, > :onchange => > "$(this.parentNode.parentNode).toggleClassName('complete')" %> > > -- > -------------------------------------------------------------------------------- > Training by Collective Idea: Ruby on Rails training in a vacation > setting > http://training.collectiveidea.com � San Antonio, TX � Jan 20-23
same thing :( i found some info here: http://dev.rubyonrails.org/ticket/11078 and the link they reference http://prototypejs.org/learn/extensions...there is a bit at the bottom: // this will error out in IE: $('someElement').parentNode.hide() // to make it cross-browser: $($('someElement').parentNode).hide() so....i tried these ways: $(this.parentNode.parentNode).toggleClassName('complete') $($(this).parentNode.parentNode).toggleClassName('complete') $($('make_step18').parentNode.parentNode).toggleClassName('complete') make_step18 is the id of checkbox i was testing. but they all produce the same weird result where they don't update until i click a second time. first click always does nothing. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---