planktoscope/pipeline/pipeline.js

22 lines
450 B
JavaScript
Raw Normal View History

2019-12-11 02:22:06 +01:00
$(document).ready(function(){
$( "#send_nb_step" ).click(function() {
pipeline()
});
2019-12-11 00:31:06 +01:00
function pipeline() {
2019-12-11 02:22:06 +01:00
var value = $("#nb_step").val();
var orientation = $("#orientation").val();
2019-12-11 00:31:06 +01:00
2019-12-11 02:22:06 +01:00
console.log("pipeline.php?nb_step="+value+"&orientation="+orientation);
2019-12-11 00:31:06 +01:00
var xmlhttp = new XMLHttpRequest();
2019-12-11 02:22:06 +01:00
xmlhttp.open("GET", "pipeline.php?nb_step="+value+"&orientation="+orientation, true);
2019-12-11 00:31:06 +01:00
xmlhttp.send();
}
2019-12-11 02:22:06 +01:00
});