Log in

View Full Version : help making form work in firefox



jackfusion
07-26-2012, 12:21 AM
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 (http://yftg.ca/canteencashreport.htm)

ajfmrf
07-26-2012, 12:41 AM
The link is no good.

I get this error:

404 Error File Not Found

jackfusion
07-26-2012, 12:48 AM
http://yftg.ca/canteencashreport.html

keyboard
07-26-2012, 12:49 AM
To convert a string to a number, I believe you can just multiply it by 1.

Example:



<script type="text/javascript">
var x = "0";
var y = x*1;
</script>


Should make y a number even though x is a string...