This topic is locked

inline add javascript

11/26/2008 6:47:52 AM
PHPRunner General questions
G
garethp authorDevClub member

Hi
I have applied some Javasript on the add page to calculate net_value on changes of qauntity and unit_price
document.forms.editform.value_net_value.disabled=true;

var vv = document.editform.value_unit_price;

var ww = document.editform.value_quantity;

vv.onchange = vv.onkeyup =ww.onchange = ww.onkeyup =function() {

var qty = document.editform.value_quantity.value;

var unit = document.editform.value_unit_price.value;

document.editform.value_net_value.value =parseFloat(qty)*parseFloat(unit);
This works perfectly - is there any way to achieve the same on an inline add? This would be just great

J
Jane 11/26/2008

Hi,
unfortunately it's impossible to use JavaScript for Inline add/edit.