# On fly Calculation problem

**URL:** <https://www.ruby-forum.com/t/on-fly-calculation-problem/108905>\
**Category:** Deployment\
**Created:** [July 9, 2007, 10:03am UTC](https://www.ruby-forum.com/t/on-fly-calculation-problem/108905 "2007-07-09T10:03:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 9, 2007, 10:03am UTC](https://www.ruby-forum.com/t/on-fly-calculation-problem/108905/1 "2007-07-09T10:03:29Z")

</div>

Hello friends,

Myself Hasmukh Rathod. I’m in last sem. of engineering. I’m trying  
to implement one small rails application. In this application i face  
one problem. The problem is…

there are three text\_fields in my Form

Quantity - Text\_field1

Rate - Text\_Field2

Total - Text\_Field1 \* Text\_Field2

CreateButton

I hope u all get my prolem. My requirement is when i enter the value  
of Quantity and Total after that when i clicked to Total text\_field at  
that time i want multiplication of that both value. I’m waiting for  
the good solution. And i think it is d best place  
where i can get my solution. Hope i will get as fast as possible.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 11, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/on-fly-calculation-problem/108905/2 "2007-07-11T20:55:18Z")

</div>

On Jul 9, 3:02 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Rate - Text\_Field2
> 
> > with regards,  
> > Hasmukh Rathod.- Hide quoted text -
> 
> - Show quoted text -

use javascript. there are several events you can tap into to execute  
the multiplication.
