Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Calculator (possible cross-browser) Problem

    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.

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by shilky View Post
    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:
    Code:
    var myForm=document.forms.myform;


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •