javascript |
7/30/2009 5:49:50 PM |
PHPRunner General questions | |
G
garethp authorDevClub member
Hi |
|
J
|
Jane 7/31/2009 |
Hi, AddScript2Postload("alert('a');..."); |
G
|
garethp authorDevClub member 7/31/2009 |
Hi Jane <script> document.forms.editform.value_part.onchange=function() 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);} </script>
AddScript2Postload("alert('a');...");
|
J
|
Jane 8/3/2009 |
Here is a sample: AddScript2Postload(" 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);}"); |
G
|
garethp authorDevClub member 9/5/2009 |
HiJane AddScript2Postload(" 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);}");
|