Results 1 to 4 of 4

Thread: help making form work in firefox

  1. #1
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help making form work in firefox

    I am working with google forms to create a canteen Cash report. The form works in PC/MAC IE, Chrome, Safari but not in firefox. The problem is the grand total for each table will not update because it is a string and when I use Number(), parseFloat() or parseInt( ,10) it will not work to convert it to a number Why is that?

    I cannot change any of the names or ids in the HTML because those parts are linked to the google spreadsheet some how. I can't include the code because it is too many characters for the post. Here is the link http://yftg.ca/canteencashreport.html

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    The link is no good.

    I get this error:

    404 Error File Not Found
    Thanks,

    Bud

  3. #3
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

  4. #4
    Join Date
    Mar 2011
    Posts
    1,952
    Thanks
    59
    Thanked 105 Times in 103 Posts
    Blog Entries
    4

    Default

    To convert a string to a number, I believe you can just multiply it by 1.

    Example:

    Code:
    <script type="text/javascript">
    var x = "0";
    var y = x*1;
    </script>
    Should make y a number even though x is a string...

Bookmarks

Posting Permissions

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