G
|
garethpDevClub member 4/16/2009 |
I may be able to offer a little help whilst you wait for the experts! <script> 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>
x.onchange = x.onkeyup = function(){ var Invoice_Amount = document.forms.editform.value_Invoice_Amount.value; document.forms.editform.value_Purchase_Amount.value = Number(Invoice_Amount) ;} </script>{/literal}
|
R
|
racerx author 4/16/2009 |
I may be able to offer a little help whilst you wait for the experts! This is a code I use... With your code... Have you started with {literal}<script>?You may be able to remove literals depending on which phprunner you are using. Also have you defined the var invoice - see first line of my code. Hope this helps
|