Sequences of actions in ajax

Asked

Viewed 47 times

0

Good afternoon! I don’t know if the title of my question is correct any more if someone has a better please change.

I have following problem, I have an emission ERP and NFE and Nfce is working properly, more I wanted to improve a little.

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

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

For each event I need to click the button.

Could I do this on the server side, example I do an Ajax request, on the server side I do an action wait about 5 seconds and already start another, until finalizing and if possible warn the user what is happening on the system. I think that would be it.

Very grateful to all, a big hug.

  • I believe it is possible yes, just you go taking the return of each AJAX call and run the next AJAX. You can also take advantage of the feedback and update the user screen stating that another step has been completed.

  • I believe you can do inside the request, when return success, you call the next step and issue a warning, and jump to the next.

  • Yeah, I thought how you guys mostly thought I’d have a different way of not repeating the ajax request all the time.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.