<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>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.</div><div><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Mark Volz &lt;MarkVolz@co.lyon.mn.us><br><b><span style="font-weight: bold;">To:</span></b> geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, May 4, 2009 12:38:54 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [Geomoose-users] total values in identify
 results<br></font><br>



 
 

 

 

 

 







<div class="Section1">

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Hello,</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">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</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoPlainText"><b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-weight:bold;">Portion of code in the template</span></font></b>:</p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;tr></span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;td align="right">&lt;b>Total
Value:&lt;/b>&lt;/td></span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;td>$</span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;script type="text/javascript"></span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">  var total = [EMVLand] + [EMVBldg] + [EMVMachine];</span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">  //alert('your total is' + total);</span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">  document.write(total);</span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">  document.write('test');</span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;/script></span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;/td></span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">&lt;/tr></span></font></p> 

<p class="MsoPlainText"><font size="2" face="Courier New"><span style="
font-size:10.0pt;">  </span></font></p> 

<p class="MsoPlainText"><b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-weight:bold;">Processed code in firebug:</span></font></b></p> 

<p class="MsoPlainText"><b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-weight:bold;">  </span></font></b></p> 

<p class="MsoNormal"><span class="nodelabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;</span></font></span><span class="nodetag">tr</span><span class="nodebracketeditableinsertbefore">></span></p> 

<p class="MsoNormal"><span class="nodelabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;</span></font></span><span class="nodetag">td</span><span class="nodeattreditgroup"> </span><span class="nodenameeditable">align</span><span class="nodeattreditgroup">="</span><span class="nodevalueeditable">right</span><span class="nodeattreditgroup">"</span><span class="nodebracketeditableinsertbefore">></span></p> 

<p class="MsoNormal"><span class="nodelabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;</span></font></span><span class="nodetag">b</span><span class="nodebracketeditableinsertbefore">></span><span class="nodetexteditable">Total Value:</span><span class="nodelabelboxreptarget">&lt;/</span><span class="nodetag">b</span><span class="nodelabelboxreptarget">></span></p> 

<p class="MsoNormal"><span class="nodecloselabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;/</span></font></span><span class="nodetag">td</span><span class="nodecloselabelboxreptarget">></span></p> 

<p class="MsoNormal"><span class="nodelabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;</span></font></span><span class="nodetag">td</span><span class="nodebracketeditableinsertbefore">></span></p> 

<p class="MsoNormal"><span class="nodetexteditable"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">$ </span></font></span></p> 

<p class="MsoNormal"><span class="nodelabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;</span></font></span><span class="nodetag">script</span><span class="nodeattreditgroup"> </span><span class="nodenameeditable">type</span><span class="nodeattreditgroup">="</span><span class="nodevalueeditable">text/javascript</span><span class="nodeattreditgroup">"</span><span class="nodebracketeditableinsertbefore">></span></p> 

<p class="MsoNormal"><span class="sourcerowtext"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;"> var total = 3.37800000000e+005 +
1.50900000000e+005 + 0.00000000000e+000;</span></font></span></p> 

<p class="MsoNormal"><span class="sourcerowtext"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;"> //alert('your total is' + total);</span></font></span></p> 

<p class="MsoNormal"><span class="sourcerowtext"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;"> document.write(total);</span></font></span></p> 

<p class="MsoNormal"><span class="sourcerowtext"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;"> document.write('test');</span></font></span></p> 

<p class="MsoNormal"><span class="nodecloselabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;/</span></font></span><span class="nodetag">script</span><span class="nodecloselabelboxreptarget">></span></p> 

<p class="MsoNormal"><span class="nodecloselabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;/</span></font></span><span class="nodetag">td</span><span class="nodecloselabelboxreptarget">></span></p> 

<p class="MsoNormal"><span class="nodecloselabelboxreptarget"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">&lt;/</span></font></span><span class="nodetag">tr</span><span class="nodecloselabelboxreptarget">></span></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Mark Volz</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">GIS Specialist</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Lyon County</span></font><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">,
 MN</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">(507) 532-8218</span></font></p> 

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="
font-size:12.0pt;">  </span></font></p> 

</div>




</div></div><div style="position:fixed"></div></div><br>

      </body></html>