Template:Team:Paris-Saclay/left-column

From 2012.igem.org

(Difference between revisions)
Line 27: Line 27:
     success  : function(xmlData){
     success  : function(xmlData){
$(xmlData).find('cm').each(function() {
$(xmlData).find('cm').each(function() {
-
alert($(this).attr("title"));
+
                var idxArticle = $(this).attr("title").lastIndexOf("/");
 +
                var Article = idxArticle.substring(idxArticle+1);
 +
alert(Article);
} )
} )
},
},
error : function(){
error : function(){
-
alert("Could not retrieve XML file.");
 
}
}
});
});

Revision as of 17:34, 20 August 2012

Follow us !