Displaying 1 result from an estimated 1 matches for "new_total_sel".
Did you mean:
new_total_sell
2006 Nov 04
0
RJS not setting form input value correctly
...id}'').value=''" +
number_to_currency(@new_total_commission, { :precision => 4 }).to_s + "'';"
The controller code is as follows in the update_totals method which is
called via the observe_field :
if @comm_type == "L"
@new_total_commission = @new_total_sell.to_f * @converted_rate.to_f
else
@new_total_commission = @new_total_weight.to_f * @converted_rate.to_f
end
Outputting debug to the log file shows that the @new_total_commission is
being set correctly.
The debug information in the browser window for the RJS "trick" produces the
follo...