Template:Team:Paris-Saclay/left-column

From 2012.igem.org

(Difference between revisions)
Line 19: Line 19:
     dataType: "xml", // type of file you are trying to read
     dataType: "xml", // type of file you are trying to read
     success  : function(xmlData){
     success  : function(xmlData){
-
var totalNodes = $('*',xmlData).length; // count XML nodes
+
$(xmlData).find('cm').each(function() {
-
var next = $(xmlData).find("query");
+
var title = $(this).attr('title');
-
totalNodes = $(*,next).length;
+
alert(title);
-
alert("This XML file has " + totalNodes);
+
} )
},
},
error    : function(){
error    : function(){

Revision as of 08:33, 20 August 2012

Follow us !