in pratica devo fare un controllo x un form che si stampa degli imput in base ad un ciclo generato in asp.
siccome operazioni del genere me li fa fare nei comandi onchange degli imput:
onchange='form1.PREZZO_LISTINO<%=Numrighe%>.value= form1.PREZZO_LISTINO<%=Numrighe%>.value.replace(", ","."); form1.QTA<%=Numrighe%>.value=form1.QTA<%=Numrighe% >.value.replace(",","."); form1.PREZZO_NETTO<%=Numrighe%>.value=eval(form1.Q TA<%=Numrighe%>.value)*(eval(form1.PREZZO_LISTINO< %=Numrighe%>.value-(form1.PREZZO_LISTINO<%=Numrighe%>.value/100*form1.Sconto.value)));form1.SCONTO_EXTRA<%=Num righe%>.value=form1.SCONTO_EXTRA<%=Numrighe%>.valu e.replace(",","."); if (form1.SCONTO_EXTRA<%=Numrighe%>.value > 0 ){form1.PREZZO_NETTO<%=Numrighe%>.value=eval(form1 .PREZZO_NETTO<%=Numrighe%>.value)-eval(form1.PREZZO_NETTO<%=Numrighe%>.value)/100*eval(form1.SCONTO_EXTRA<%=Numrighe%>.value)};f orm1.PREZZO_NETTO<%=Numrighe%>.value=Math.round(ev al(form1.PREZZO_NETTO<%=Numrighe%>.value)*100)/100;'
speravo di potermi fare una funzione da richiamare ( onchange="ControlloImporto(qta, listino, nrighe)" )per semprilificare i controlli e i calcoli del form compilato, invece di inserire questo onchange in più imput.
spero che capiate il mio problema :master:
aspetto vostre notizie. Grazie a tutti
cla![]()