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;’ ) -%>
All the Best!
Sergey.
