HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Math functions in Tables and Forms?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
Stickyfingers



Joined: 15 Oct 2007
Posts: 23
Location: New York City

PostPosted: Mon Oct 15, 2007 3:12 pm     Math functions in Tables and Forms? Reply with quote

Can I use math functions in Tables and Forms?

For instance... I have two parameters:

Tidal Volume (how much we breathe in each breath) and Frequency (the number of breaths we take each minute).
Both are presently in a Table - each in it's own cell. I want to use HTML (or CSS) and multiply them together to get a third parameter:
Minute Ventilation (the amount we breath in each minute).

How do I do that?

To see what I'm working on, please go to:

http://www.youcanreadebooks.com/Ventilation.html
(The link will be active for just a couple of days)
Tidal Volume is listed as Vt.
Frequency is listed as f.
Minute Ventilation is listed as Ve.

Thanks a zillion,

Stickyfingers
Stickyfingers



Joined: 15 Oct 2007
Posts: 23
Location: New York City

PostPosted: Tue Oct 16, 2007 11:53 am     Math functions in Tables and Forms? Reply with quote

I know Math functions in general can be used in HTML, but:
1. Can they be incorporated into tables and forms?
2. Can they be used across cells in a table or form?

ie: cell 1 has a 2 in it, and cell 2 has a 3 in it...

Can I tell cell 3 to add the values in cells 1 & 2 and have the sum (5) appear in cell 3 ?

3. Can I have the user dynamically change the values in the first two cells at will so cell 3 will automatically display the new sum?
4. Is there a scroll bar or data box with arrows so the user can dynamically change the values in the first two cells resulting in new value in cell 3 ?

Is there such a thing in HTML, or am I asking for Nirvana here?

Corey, do you know of such a thing?

Thanks,

Stickyfingers
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Thu Oct 18, 2007 5:00 am     Reply with quote

JavaScript can do some simple math functions but I never went over to using JavaScript.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | Microsoft Expressions
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial