Personal tools

User:Hisa/tabletest: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


<html>
<html>




Line 11: Line 14:
</style>
</style>
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.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" language="javascript" src="/resource_browser/rb_js/fixedcolumns/media/js/FixedColumns.min.js"></script>
 




<script type="text/javascript" charset="utf-8">
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$(document).ready(function() {
</html>
{{#exptable_hg19_dtarr:
{{#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
|order=ASC}}
|hg19
}}
<html>
 


$('#table_test1').dataTable(
$('#ffcp_tf_enrichscore').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="ffcp_tf_enrichscore_cont"></table>' );
{
var oTable = $('#ffcp_tf_enrichscore_cont').dataTable( {
"bProcessing": true,
"bProcessing": true,
// "sScrollX": "100%",
// "sScrollX": "100%",
Line 28: Line 39:
         "bScrollCollapse": true,
         "bScrollCollapse": true,
"iDisplayLength": -1,
"iDisplayLength": -1,
"aoColumns": cols,
"aaData": data,
"aaSorting": [[ 1, "desc" ]]
});
// hyperlink on column header
for(i1=1;i1<$("#ffcp_tf_enrichscore tr")[0].cells.length;i1++){
$("#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>";
}


"aaSorting": [[ 1, "desc" ]]
// hyperlink on sample record
for(i1=1;i1<$("#ffcp_tf_enrichscore tr").length;i1++){
var cellcont = $("#ffcp_tf_enrichscore tr")[i1].cells[0].innerHTML;
$("#ffcp_tf_enrichscore tr")[i1].cells[0].innerHTML = "<a href=\"/resource_browser/FF:"+cellcont.split(".").pop()+"\">"+cellcont+"</a>";
}
}
);
 
 
//$("#ffcp_tf_enrichscore tbody td").not('.dt_sample_name').each(function(){
//var cval= $(this).innerHTML;
//$(this).css({background: 'yellow'});
//}
//);
 
 




Line 44: Line 77:


</html>
</html>
{{#exptable_dt:
{{#ask:[[Category:FFCP]][[EntrezGene::10]][[Species::Human (Homo sapiens)]]|?short_description|?id|?Phase1 expression|limit=10|format=template|template=Exptable_imput|sep=$
|sort=short_description
|order=ASC}}
|hg19
}}

Latest revision as of 14:47, 17 May 2012