Difference between revisions of "XML Javascript Function"

From SmartWiki
Jump to: navigation, search
m
m
Line 22: Line 22:
 
* [[Custom Field Type: Special - XML Data]]
 
* [[Custom Field Type: Special - XML Data]]
  
[[Category:Custom Fields]][[Category:XML]][[Category:Javascript]]
+
[[Category:Custom Fields]][[Category:XML]][[Category:JavaScript]]

Revision as of 06: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);


See Also