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
| function run(){
$(".run").click(function()
{
indts=$(this).parent().prop('id');
lib=$("#lib").val();
$.ajax({
type : 'POST', // envoi des données en GET ou POST
beforeSend : function() { // traitements JS à faire AVANT l'envoi
// ajout d'un loader pour signifier l'action
$("#output").html;$("#jqxgrid").hide();
$("#logomenu").after('<span id="ajax-loader1"><img style="margin-top:4px;margin-left:155px;height:18px;position:absolute" src="'+web_path_p+car_b+'Librairies'+car_b+'Images'+car_b+'ajax-loader2.gif" alt="image du loader" /> </span');}
,
url : 'http:'+server_sp+'/Coding/VALDOMED/run_detect', // url du fichier de traitement
/*async:false, */
data : 'indts='+indts+'&product='+product+'&study='+study+'&expltn='+expltn+'&lib='+lib,
dataType : 'json',
success : function(data){ },
complete :function(data){$('#ajax-loader1').remove();
$("#testtoto").click() ;
log("run_detect_"+indts+".log","Log is ok [run "+indts+"]");
/* $("#"+indts+"> .display").click()*/ }
});
});
}
function display(){
$(".display").click(function()
{
alert("test");.......................etc |
Partager