forked from Dave-Matthews/The-Triticeae-Toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster.js
29 lines (28 loc) · 1.12 KB
/
cluster.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*global alert,$,Ajax,Element,window,getXMLHttpRequest*/
var php_self = document.location.href;
var title = document.title;
var mmm = 10;
var mml = 10;
var mmaf = 5;
var clusters = 5;
function filter_lines(time, linecount) {
var mmm = $('mmm').getValue();
var mml = $('mml').getValue();
var mmaf = $('mmaf').getValue();
var req= getXMLHttpRequest();
var resp=document.getElementById('ajaxresult');
if(!req) {
alert("Browser not supporting Ajax");
}
resp.innerHTML = "<img id='spinner' src='./images/progress.gif' alt='Working...'><br>" +
"Retrieving all marker alleles for <b>" + linecount + "<\/b> lines.<br>" +
"Retrieval rate is ca. one minute for 500 lines (1.5 million alleles).";
req.onreadystatechange = function(){
if(req.readyState === 4){
var button = "<p><input type='submit' value='Analyze'><\/form>";
resp.innerHTML= button + req.responseText;
}
};
req.open("GET", "cluster_getalleles.php?time=" + time + "&mmaf=" + mmaf + "&mmm=" + mmm + "&mml=" + mml, true);
req.send(null);
}