Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
Heatmap Changes:
authormiles <miles@localhost>
Tue, 9 Apr 2013 22:11:07 +0000 (22:11 +0000)
committermiles <miles@localhost>
Tue, 9 Apr 2013 22:11:07 +0000 (22:11 +0000)
        - jump to cluster button is now working
        - jump to gene is still not

svn path=/; revision=462

Personnel/miles/Web Page/heatMap.php

index fda8828683111004ced7b08d12c44117c49698b5..adf7575127edd9631a9231e4e168e5a1dd2494d2 100644 (file)
@@ -112,8 +112,8 @@ Click on a species name, cluster number, or cell for more information.
 <input type="hidden" name="orderBy" value="order by super_id,gene">
 </form>
 
-<form id="jumpTo" name="jumpTo">
-<input type="button" id="jumpToBut" value="Jump to Cluster:" onClick="jumpToCluster(); return false;"/>
+<form name="jumpToCluster">
+<input type="button" id="jumpToBut" value="Jump to Cluster:" onClick="getClusterLoc(); return false;"/>
 <input type="text" id="cluster" name="cluster" value="0"/>
 </form>
 
@@ -388,13 +388,13 @@ function getBoxInfo(cluster, species, clusterIndex, speciesIndex) {
   document.infoForm.submit();
   }
 
-function jumpToCluster() {
-  var cluster = parseInt(document.getElementById('jumpTo').cluster.value);
+function getClusterLoc() {
+  var cluster = parseInt(document.jumpToCluster.cluster.value);
   if(cluster > clusterCount) {
   alert("No such cluster exists for this result set!");
   return;
   }
-  document.getElementById("scrollDiv").scrollTop = (cluster-1)*cellSize;
+  document.getElementById("topScrollDiv").scrollTop = (cluster-1)*cellSize;
   drawMap();
 }
 
@@ -428,7 +428,7 @@ function getGeneLoc() {
        if(parseInt(allClusterIDs[i])==clusterID) {
          c = i;
          document.getElementById('jumpTo').cluster.value = i+1;
-         jumpToCluster()
+         getClusterLoc()
        }
       }
       for(i = 0; i < allSpecies.length; i ++) {