Template:Team:Paris-Saclay/left-column

From 2012.igem.org

(Difference between revisions)
Line 20: Line 20:
     var url = document.location.href;
     var url = document.location.href;
     var idxPS = url.indexOf("Team:Paris-Saclay",0);
     var idxPS = url.indexOf("Team:Paris-Saclay",0);
-
     Category = url.substring(idxPS,url.length-1);
+
     Title = url.substring(idxPS,url.length);
 +
    Category = "";
      
      
     $.ajax({
     $.ajax({
Line 29: Line 30:
format: 'xml',  
format: 'xml',  
action: 'query',
action: 'query',
-
titles: "",
+
titles: Title,
prop: 'categories'},
prop: 'categories'},
     dataType: "xml", // type of file you are trying to read
     dataType: "xml", // type of file you are trying to read

Revision as of 18:32, 20 August 2012

Follow us !