Form-based Calculator

C

CJ

OK, this is loosely FrontPage-related! I want to set up a calculator using
an HTML form. Very simply, I want the user to enter a number in an input
area, then press a button, and for the form to return the answer based on a
fixed percentage of the input.

For example, if the user inputs 100, the form would output 10 if the
percentage was pre-set to 10%. The user doesn't need to be able to change to
10% figure.

Is this possible? The only other thing I thought of was an interactive web
page created in Excel.

Thanks.

CJ
 
T

Thomas A. Rowe

Do a search in IE address bar as:

? JavaScript Calculator Scripts

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

CJ

Do a search in IE address bar as:
? JavaScript Calculator Scripts

Thanks, I hadn't bargained on using Javascript, but I guess there's no
reason why not.

CJ
 
T

Thomas A. Rowe

There is really not other way to do this, without using server-side script where the form is
complete and submitted back to the server which in-turn does the calculation and then returns the
result back to the browser.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

Mike, your component is still based on using JavaScript.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

CJ

Excel will only work for users w/ Excel

Hmmm, I thought you could save a spreadsheet as a web page and add
interactivity.

CJ
 
T

Thomas A. Rowe

But that requires the users to have Excel installed.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

1. The Office Web Component (OWC) must be installed on the server.
2. Users must use IE to access the site and to use the Office Web Component.
3. Users must have a license Office or the Office App installed.

See:
http://www.microsoft.com/office/previous/xp/developer/platform/owcfaq.asp
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top