Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Picture of Jsbeers
Posted
I would like to creat a estimating webpage with a drop down box called part, a text box called price when part is selected the price that the part costs shows, a text box called quantity, a text box called total it * price by quantity, a text box called # of Hours, and a text box called total hours it * quantity by # of Hours.

Thanks
 
Posts: 3 | Registered: September 01, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
The simplest way would be to create a form, using code to populate the appropriate price upon a selection in the part drop-down (form selection list box).

When the user enters a quantity, you could place some code in the code field of the quantity text box, # of hours etc.

For example
onChange="totalours.value=quantity.value*hours.toFixed(2)"


The toFixed(2) keeps the integer to two decimal places.
 
Posts: 1147 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.