AJAX Custom Functions
From Code Trash
function aresponse(jax) { if(isbien(jax.responseText)) { if(arguments.length>1) alert(arguments[1]) else alert('Updated Successfully'); } else { if(arguments.length>2) alert(strip_tags(jax.responseText)) else alert("Unable to process this request"); } } function jaxerror(jax) { if(jax.responseText.indexOf('jaxtimeout')+1) { alert("Session time out. Please re-login"); return; } if(arguments.length>1) alert(strip_tags(jax.responseText)) else alert("Unable to process this request"); }