Sequences of actions in ajax

0

Good afternoon! I do not know if the title of my question is correct anymore if someone has a better one please change.

I have the following problem, I have an ERP issue and NFE and NFCe is working correctly, but I wanted to improve a bit.

I use Ajax to sign and validate, send to SEFAZ and check receipt.

Currently this is done by step, step one sign and validate, send, and consult and print.

For each event, click the button.

I would like to do this on the server side, example I make an Ajax request, on the server side I do an action wait for 5 seconds and start another, until it finishes and if possible, let the user know what is happening in the system. I think that would be it.

Very grateful to all, a big hug.

    
asked by anonymous 09.03.2017 / 20:43

0 answers