I am editing a file cancellation function, and today it only shows the status "Waiting ...", according to the code:
&js<
cancelEvent = "";
$(".ui-overlay").show();
$("#retorno").empty().html("<img src='../loader.gif' width='14' align='absmiddle'> Aguardando...");
$.get("../javascript/Cancela.php#(qs)#",function(data){
$("#retorno").empty().html(data);
if(data == 1) {
processaEvento('#(NF)#','#(DESC)#','#(DT1)#','#(DT2)#','#(OP)#');
} else {
alert("Não foi possível realizar o cancelamento");
document.getElementById("btSalvar").disabled = false;
document.getElementById("btSalvar").value = "Salvar";
}
});
$(".ui-overlay").hide();
>
I want to add a sequence of loading phrases, such as "Wait ..." , "Canceling ..." , "Finalizing the procedure ... ", so the user can follow the step by step.
Can I just do this with javascript? Or any different suggestions?