User:Hisa/tabletest: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<html> | <html> | ||
Line 10: | Line 13: | ||
@import "/resource_browser/rb_js/datatables/media/css/f5_rb_table.css"; | @import "/resource_browser/rb_js/datatables/media/css/f5_rb_table.css"; | ||
</style> | </style> | ||
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.js"></script> | <script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script> | ||
<script type="text/javascript" charset="utf-8"> | <script type="text/javascript" charset="utf-8"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
</html> | |||
</html>{{#exptable_hg19_dtarr: | {{#exptable_hg19_dtarr: | ||
{{#ask:[[Category:FFCP]][[EntrezGene::100]][[Species::Human (Homo sapiens)]]|?short_description|?id|?Phase1 expression|limit= | {{#ask:[[Category:FFCP]][[EntrezGene::100]][[Species::Human (Homo sapiens)]]|?short_description|?id|?Phase1 expression|limit=10|format=template|template=Exptable_imput|sep=$ | ||
|sort=short_description | |sort=short_description | ||
|order= | |order=ASC}} | ||
|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').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="ffcp_tf_enrichscore_cont"></table>' ); | ||
$('#ffcp_tf_enrichscore_cont').dataTable( { | var oTable = $('#ffcp_tf_enrichscore_cont').dataTable( { | ||
"bProcessing": true, | |||
// "sScrollX": "100%", | |||
// "sScrollXInner": "150%", | |||
"sScrollY": "300px", | "sScrollY": "300px", | ||
"bPaginate": false, | "bPaginate": false, | ||
Line 35: | Line 47: | ||
// 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++){ | ||
$("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML = "<a href=\"FFCP_PHASE1:Hg19::"+encodeURI(collinks.shift())+"\">"+$("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML+"</a>"; | $("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML = "<a href=\"/resource_browser/index.php/FFCP_PHASE1:Hg19::"+encodeURI(collinks.shift())+"\">"+$("#ffcp_tf_enrichscore tr")[0].cells[i1].innerHTML+"</a>"; | ||
} | } | ||
Line 51: | Line 63: | ||
//); | //); | ||
Line 56: | Line 70: | ||
</script> | </script> | ||
<div id="debug" style="float:left;"></div> | |||
<div id="ffcp_tf_enrichscore" style="float:left;"></div> | |||
</html> | </html> |
Latest revision as of 14:47, 17 May 2012