Advertisement

08.05.2008 at 03:10PM PDT, ID: 23624032
[x]
Attachment Details

Calculating Totals

Asked by AEII in JavaScript, JScript

I have a form that the user enters in a quanity and it totals it for each item ...

I looked at several posts on how to do this and have got it ...

However how do you total all the totals from each item ?

Here is what I wrote for a function ... IS my last function correct ?
And then how do I have a text box with the total displayed as they input the items on the order form ?

             function sumUpdateQMgr(f) {
          var x1 = f.Qty1.value * 1295.00;
          f.TotalQMgr.value = x1.toFixed(2);
        }
              function sumUpdateJbCtrlFm(f) {
          var x2 = f.Qty2.value * 49.95;
          f.TotalJbCtrlFm.value = x2.toFixed(2);
        }
        
              function sumUpdateTotalConditionRpt(f) {
          var x3 = f.Qty3.value * 21.95;
          f.TotalConditionRpt.value = x3.toFixed(2);
        }

            function sumUpdateControlBinder(f) {
          var x4 = f.Qty4.value * 54.95;
          f.TotalControlBinder.value = x4.toFixed(2);
        }
        
              function sumUpdateProcedureBinder(f) {
          var x5 = f.Qty5.value * 54.95;
          f.TotalProcedureBinder.value = x5.toFixed(2);
        }
        
              function sumUpdateEmployeeManual(f) {
          var x6 = f.Qty6.value * 5.50;
          f.TotalEmployeeManual.value = x6.toFixed(2);
        }
        
              function sumUpdatePresCD1(f) {
          var x7 = f.Qty7.value * 99.95;
          f.TotalPresCD1.value = x7.toFixed(2);
        }
        
              function sumTotalSale(f) {
          var x8 = f.Qty1.value + f.Qty2.value + f.Qty3.value + f.Qty4.value + f.Qty5.value + f.Qty6.value + f.Qty7.value ;
          f.TotalSale.value = x8.toFixed(2);
        }


Start Free Trial
[+][-]08.05.2008 at 09:50PM PDT, ID: 22167203

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 05:52AM PDT, ID: 22169549

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:28PM PDT, ID: 22176267

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 05:00PM PDT, ID: 22176418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 05:07PM PDT, ID: 22176454

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, JScript
Sign Up Now!
Solution Provided By: Lolly-Ink
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.06.2008 at 06:05PM PDT, ID: 22176680

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:19PM PDT, ID: 22176738

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:31PM PDT, ID: 22176792

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:37PM PDT, ID: 22176809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:55PM PDT, ID: 22176859

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628