• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How I can add numbers in ASP with little logic

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I need to add
text3=text1 +text2
then
text5= text3+text4
there is CALCULATE funtion which added
parseFloat(document.Form1.text3.value)=
parseFloat(document.Form1.text1.value)+
parseFloat(document.Form1.text2.value)
there is CALCULATE1 function which adds
parseFloat(document.Form1.text5.value)=
parseFloat(document.Form1.text3.value)+
parseFloat(document.Form1.text4.value)
The problem is when I am calling in Onchange="CALCULATE()" in text box for text3 it is working fine.
but I am calling onchange=CALCULATE1() in text3 text4 and text5 it is working first time. after I cahnge any of them in text1 which affect only text3 not text 5.
may be you get doubtn text3 is subtotal and text5 is total in page.
How I can solve. Please help me as soon as possible.
Thanks
 
Anu Sri
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I got it with little effort, means using same function not two diffrent functions.
Thanks
Anu
 
We can fix it! We just need some baling wire, some WD-40, a bit of duct tape and this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic