-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.js
59 lines (56 loc) · 1.45 KB
/
dashboard.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function showLabs(str)
{alert("dfd")
if (str == "")
{
document.getElementById("labs").innerHTML = "";
return;
}
else
{
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
document.getElementById("labs").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET","getlabs.php",true);
xmlhttp.send();
}
}
function hello(){
var op0 = document.getElementById("None").value;
var op1 = document.getElementById("status").value;
var op2 = document.getElementById("int_level").value;
var op3 = document.getElementById("source_avail").value;
if (op1){
alert("skssax")
add_status(op1);
}
else if (op2){
add_inte(op2);
}
else if (op3)
{
add_source(op3);
}
else alert("none")
}
function add_status(op1)
{
alert("inside add_status")
document.getElementById('status_id').className = "new_stt";
return();
}
function add_inte(op2){
document.getElementById('integration_level_id').className = "new_stt";
}
function add_source(op3)
{
document.getElementById('source_avail_id').className = "new_stt";
}