• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic