PageSourceSearch

https://www.sarlece.fr/public/js/ajax.js@var=53173

js sarlece.fr collected 2026-10-08 22:54:32 UTC 1,088 bytes, 29 lines download raw bytes

1function msgbox(div,error,errormsg){
2    $(div).hide();
3    $(div).html(errormsg);
4    if(error){$(div).addClass("uk-alert uk-alert-danger");}
5    else{$(div).removeClass('uk-alert uk-alert-danger').addClass('uk-alert uk-alert-success');}
6    $(div).fadeIn("fast");
7}
8
9function ajax_form(id_form,id_result,url_ajax,reload){
10    $(id_form).submit(function(){
11        $.ajax({
12            type:'post',
13            url:url_ajax,
14            data:$(this).serialize(),
15            dataType:'json',
16            success:function(data){
17                msgbox(id_result,data.errorcode,data.errormsg);
18				/*alert(data.errormsg);*/
19				if(data.errorcode==false){vider_formulaire(id_form);}
20				if(data.errorcode==false && reload==true){location.reload();}
21            },
22            error:function(xhr, ajaxOptions, thrownError){
23				/*alert('Error : ' + xhr.responseText +' '+ajaxOptions+' '+xhr.status+' '+thrownError);*/
24                msgbox(id_result,1,'Error : ' + xhr.responseText +' '+ajaxOptions+' '+xhr.status+' '+thrownError);
25            }
26        });
27        return false;
28    });
29}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.