[Geomoose-users] total values in identify results
Mark Volz
MarkVolz at co.lyon.mn.us
Mon May 4 13:38:54 EDT 2009
Hello,
I am trying to total the values for several fields in my identify results.
The javascript code below is from my identifyParcels.html code. The values
apparently are added together correctly; however I just cannot get the total
to display in the identify results
Portion of code in the template:
<tr>
<td align="right"><b>Total Value:</b></td>
<td>$
<script type="text/javascript">
var total = [EMVLand] + [EMVBldg] + [EMVMachine];
//alert('your total is' + total);
document.write(total);
document.write('test');
</script>
</td>
</tr>
Processed code in firebug:
<tr>
<td align="right">
<b>Total Value:</b>
</td>
<td>
$
<script type="text/javascript">
var total = 3.37800000000e+005 + 1.50900000000e+005 + 0.00000000000e+000;
//alert('your total is' + total);
document.write(total);
document.write('test');
</script>
</td>
</tr>
Mark Volz
GIS Specialist
Lyon County, MN
(507) 532-8218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20090504/76465891/attachment.html
More information about the Geomoose-users
mailing list