1 line
348 B
JavaScript
1 line
348 B
JavaScript
function doAjax(a,b,e,d,c,f){if(typeof f==="undefined"){f=false}$.ajax({type:a,url:b,dataType:"json",data:e,async:f,success:function(g){if(d!=null){d(g)}},error:function(k,g,h){if(b!="php/debug.php"){var i={cmd:b,fct:d.name,xhr:k.responseText,errormsg:c,status:g};if(c!=null){var j=c+h+" ("+b+")";alert("Kommunikationsfehler zum Server: "+j)}}}})}; |