...

View Full Version : Form Calculator (possible cross-browser) Problem



shilky
12-19-2007, 09:24 PM
I am making a webpage for my company that serves as a calculator where the user can input values and a total number would be calculated. I was able to make a test version, and this works for both IE and Firefox.
see: http://taxstream.net/test_calc.html

However, when I put that same code into a template I've been using for the rest of the company website, I have some problems. The form calculator doesn't work at all in Firefox, and the yellow table background doesn't show up. In IE, the form calculator works, but the input fields under "Annual Time Saved" now have borders.
see: http://taxstream.net/products/savings_calc.shtml

I've read several sites and articles trying to figure out what's wrong, but to no avail. I'm not sure if this is entirely a cross-browser problem (the test version works fine on IE and FF). I was also wondering if the use of ssi files (in the .shtml file) has something to do with the problem.

Any help would be greatly appreciated.

Thank you,
Chris

p.s. I'm still fairly new with Javascript, please forgive me if the answer if obvious.

Arty Effem
12-19-2007, 10:48 PM
The form calculator doesn't work at all in Firefox, and the yellow table background doesn't show up. In IE, the form calculator works, but the input fields under "Annual Time Saved" now have borders.
see: http://taxstream.net/products/savings_calc.shtml
Use the error console.

You must not try to refer to a form directly by name.

To save repetition, create a reference to the form:

var myForm=document.forms.myform;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum