[Geomoose-users] total values in identify results

Dan Little danlittle at yahoo.com
Mon May 4 13:52:22 EDT 2009


Unfortunately, the HTML is displayed by taking the processed Mapserver results and using the ".innerHTML" attribute.  This has the consequence of not actually executing the javascript that is entered in the template.




________________________________
From: Mark Volz <MarkVolz at co.lyon.mn.us>
To: geomoose-users at lists.sourceforge.net
Sent: Monday, May 4, 2009 12:38:54 PM
Subject: [Geomoose-users] total values in identify results


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/31636bbf/attachment.html


More information about the Geomoose-users mailing list