Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

279
Views
using async/await insted of AJAX

I am going to use async await instead of AJAX in jsp file. How can I use async/await? This is my code:

function setAcc(){
    var acc_ = getDOM("acc_").value
    AJAX.load({POST: {request: 'set_acc', async: false, acc_: acc_},
        onSuccess: function (result) {
            var objJSON = eval("(function(){return " + result + ";})()");
        go({});
        },
        onError: function (d) {
            alert_g(eval(d));
        }
    });
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Instead of ajax you should use axios library for that and then use async and await accordingly for the Server request's.

Try this link for more understanding

  • async await using axios
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!