Difference between revisions of "XML Javascript Function"

From SmartWiki
Jump to: navigation, search
(Created page with "XML Javascript Function is a section on Custom_Field_Type:_Special_-_XML_Data type field. Javascript and jQuery scripts can be added, which will run when the Special - XM...")
 
Line 1: Line 1:
 
XML Javascript Function is a section on [[Custom_Field_Type:_Special_-_XML_Data]] type field.
 
XML Javascript Function is a section on [[Custom_Field_Type:_Special_-_XML_Data]] type field.
  
Javascript and jQuery scripts can be added, which will run when the Special - XML Data field's button is clicked, and the new window with the XML is opened.
+
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.
  
  

Revision as of 06:34, 29 May 2014

XML Javascript Function is a section on Custom_Field_Type:_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