Difference between revisions of "XML Javascript Function"
From SmartWiki
m |
|||
Line 5: | Line 5: | ||
Example: | Example: | ||
− | If the sum of cells with a specific css class (cellToTotal) (as defined in [[XML_Section_Builder]]) has to be alerted: | + | If the sum of cells with a specific css class (cellToTotal) (as defined in [[XML_Section_Builder|XML Section Builder]]) has to be alerted: |
<pre style="white-space: pre-wrap; | <pre style="white-space: pre-wrap; | ||
white-space: -moz-pre-wrap; | white-space: -moz-pre-wrap; |
Revision as of 05:39, 29 May 2014
XML Javascript Function is a section on Special - XML Data type field.
Javascript and jQuery scripts can be added, which will run when the Special - XML Data field's open button is clicked, and the new window with the XML is opened.
Example:
If the sum of cells with a specific css class (cellToTotal) (as defined in XML Section Builder) has to be alerted:
var specCellSum=0; $(".cellToTotal").each(function(){ specCellSum+=parseFloat($(this)); }); alert(specCellSum);