User:Hisa/tabletest: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
</html>{{#exptable_hg19_dtarr: | </html>{{#exptable_hg19_dtarr: | ||
{{#ask:[[Category:FFCP]][[EntrezGene:: | {{#ask:[[Category:FFCP]][[EntrezGene::100]][[Species::Human (Homo sapiens)]]|?short_description|?id|?Phase1 expression|limit=1000|format=template|template=Exptable_imput|sep=$ | ||
|sort=short_description | |||
|order=DESC}} | |||
|hg19 | |hg19 | ||
}} | }} | ||
<html> | <html> | ||
$('#ffcp_tf_enrichscore').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="ffcp_tf_enrichscore_cont"></table>' ); | |||
$('#ffcp_tf_enrichscore_cont').dataTable( { | |||
"sScrollY": "300px", | |||
"bPaginate": false, | |||
"bScrollCollapse": true, | |||
"iDisplayLength": -1, | |||
"aoColumns": cols, | |||
"aaData": data | |||
}); | }); | ||
// hyperlink on column header | // hyperlink on column header | ||
for(i1=1;i1<$("#ffcp_tf_enrichscore tr")[0].cells.length;i1++){ | for(i1=1;i1<$("#ffcp_tf_enrichscore tr")[0].cells.length;i1++){ | ||
var cellcont = $("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML | var cellcont = $("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML; | ||
$("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML = "<a href=\"FFCP_PHASE1:Hg19::"+encodeURI( | $("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML = "<a href=\"FFCP_PHASE1:Hg19::"+encodeURI(collinks.shift())+"\">"+cellcont+"</a>"; | ||
} | } | ||
// hyperlink on sample record | // hyperlink on sample record | ||
Line 36: | Line 43: | ||
$("#ffcp_tf_enrichscore tr")[i1].cells[0].innerHTML = "<a href=\"/resource_browser/FF:"+cellcont.split(".").pop()+"\">"+cellcont+"</a>"; | $("#ffcp_tf_enrichscore tr")[i1].cells[0].innerHTML = "<a href=\"/resource_browser/FF:"+cellcont.split(".").pop()+"\">"+cellcont+"</a>"; | ||
} | } | ||
}); | |||
</script> | </script> | ||
<!-- tf enrich table: end--> | <!-- tf enrich table: end--> | ||
Line 82: | Line 89: | ||
</script> | </script> | ||
<div id="test1"></div> | <div id="test1"></div> | ||
<div id="debug" style="float:left;"></div> | |||
<div id="ffcp_tf_enrichscore" style="float:left;"></div> | <div id="ffcp_tf_enrichscore" style="float:left;"></div> | ||
<div id="top_motiftb" style="float:left;padding-left:15px;"></div> | <div id="top_motiftb" style="float:left;padding-left:15px;"></div> | ||
<!-- top motif table: end--> | <!-- top motif table: end--> | ||
</html> | </html> |
Revision as of 16:05, 16 May 2012