Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q48, March 27, 2001 at 16:23:43:

You are here: irt.org | About | Feedback | 2547 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q48

Sent by
billemery on March 27, 2001 at 16:23:43:

Length:
Too short

Comments:
this is an example of how to
do what the question asks.
first the form variables are convertd to numbers ie
var QDT = DAILYFORM.QTYDAILYTICKETS.value - 0;
then the calc is done and the result is loaded back into a form
text field by using + ''.


function calcdepqty()
{
var result = 0;
var QDT = 0;
var QN = 0;
var VBQ = 0;
var V = 0;
var WEQ = 0;
var QDT = DAILYFORM.QTYDAILYTICKETS.value - 0;
var WEQ = DAILYFORM.WEQTY.value - 0;
var QN = DAILYFORM.QTYNIGHT.value - 0;
var VBQ = DAILYFORM.VALIDBILLQTY.value - 0;
var V = DAILYFORM.VOID.value - 0;
result = QDT + WEQ + QN + VBQ + V;
DAILYFORM.DEPOSITQTY.value = result + '';
}
</SCRIPT>


Other feedback on 'irt.org FAQ Knowledge Base Q48' - show all

©2018 Martin Webb