Form-based Calculator

  • Thread starter Thread starter CJ
  • Start date Start date
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
 
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.
==============================================
 
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
 
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.
==============================================
 
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.
==============================================
 
Excel will only work for users w/ Excel

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

CJ
 
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.
==============================================
 
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.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top