Hi there! I did implemented the radio button with remote_function to update some div via RJS. It works perfect with FireFox, but behaves weird with IE. When I click the radio button it loads data (I see the indicator showing) but not updates the div with info until I click left mouse button anywhere. It''s weird =( Here is the snippet from .rhtml code <td> <input type=radio name="register[Customer]" value=R checked onchange="<%= remote_function( :update => ''CustomerPlans'', :with => "''customer=R''", :loading => "Element.show(''loading-indicator1'')", :loaded => "Element.hide(''loading-indicator1'')", :complete => evaluate_remote_response, :url => { :controller => ''live'', :action => ''select_plan'' } ) -%>" >Residential <input type=radio name="register[Customer]" value=B onchange="<%= remote_function( :update => ''CustomerPlans'', :with => "''customer=B''", :loading => "Element.show(''loading-indicator1'')", :loaded => "Element.hide(''loading-indicator1'')", :complete => evaluate_remote_response, :url => { :controller => ''live'', :action => ''select_plan'' } ) -%>" >Business <%= image_tag(''/images/indicator.gif'', :id => ''loading-indicator1'', :style => ''display:none;'' ) -%> </td> All the Best! Sergey. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Sergey Kuznetsov
2006-Sep-10 21:25 UTC
Re: Issue with radiobutton and remote_function in IE.
My question was: Does anyone knows how to fix it with IE? :) All the Best! Sergey. Sergey Kuznetsov wrote:> Hi there! > > I did implemented the radio button with remote_function to update some > div via RJS. > > It works perfect with FireFox, but behaves weird with IE. When I click > the radio button > it loads data (I see the indicator showing) but not updates the div with > info until I click > left mouse button anywhere. > > It''s weird =( > > Here is the snippet from .rhtml code > > > <td> > <input type=radio name="register[Customer]" value=R checked > onchange="<%= remote_function( :update => ''CustomerPlans'', > :with => "''customer=R''", > :loading => "Element.show(''loading-indicator1'')", > :loaded => "Element.hide(''loading-indicator1'')", > :complete => evaluate_remote_response, > :url => { :controller => ''live'', :action => ''select_plan'' > } ) -%>" > >Residential > <input type=radio name="register[Customer]" value=B > onchange="<%= remote_function( :update => ''CustomerPlans'', > :with => "''customer=B''", > :loading => "Element.show(''loading-indicator1'')", > :loaded => "Element.hide(''loading-indicator1'')", > :complete => evaluate_remote_response, > :url => { :controller => ''live'', :action => ''select_plan'' > } ) -%>" > >Business > <%= image_tag(''/images/indicator.gif'', > :id => ''loading-indicator1'', > :style => ''display:none;'' ) -%> > </td> > > > > > > All the Best! > Sergey. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hello Sergey, This is almost 100% assuredly nothing to do with RoR/rails/ruby/Firefox or anything else, but from the sounds of it, this is a variant of the classic ''peek-a-boo'' bug. For more ''IE'' gotcha''s, read the webpage www.positioniseverything.net. Once you have, you will start to come to the scary conclusion that is; dont use IE 6. I wish that was sarcasm.. but.. *sighs and shrugs* Regards Stef Sergey Kuznetsov wrote:> My question was: > > Does anyone knows how to fix it with IE? :) > > > All the Best! > Sergey. > > > Sergey Kuznetsov wrote: > >> Hi there! >> >> I did implemented the radio button with remote_function to update some >> div via RJS. >> >> It works perfect with FireFox, but behaves weird with IE. When I click >> the radio button >> it loads data (I see the indicator showing) but not updates the div with >> info until I click >> left mouse button anywhere. >> >> It''s weird =( >> >> Here is the snippet from .rhtml code >> >> >> <td> >> <input type=radio name="register[Customer]" value=R checked >> onchange="<%= remote_function( :update => ''CustomerPlans'', >> :with => "''customer=R''", >> :loading => "Element.show(''loading-indicator1'')", >> :loaded => "Element.hide(''loading-indicator1'')", >> :complete => evaluate_remote_response, >> :url => { :controller => ''live'', :action => ''select_plan'' >> } ) -%>" >> >Residential >> <input type=radio name="register[Customer]" value=B >> onchange="<%= remote_function( :update => ''CustomerPlans'', >> :with => "''customer=B''", >> :loading => "Element.show(''loading-indicator1'')", >> :loaded => "Element.hide(''loading-indicator1'')", >> :complete => evaluate_remote_response, >> :url => { :controller => ''live'', :action => ''select_plan'' >> } ) -%>" >> >Business >> <%= image_tag(''/images/indicator.gif'', >> :id => ''loading-indicator1'', >> :style => ''display:none;'' ) -%> >> </td> >> >> >> >> >> >> All the Best! >> Sergey. >> >> >> >> > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---