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

105
Views
Trying to display a API return with a typecript code

Im doing something wrong here. im trying to display this {"ari":{"Message":"LP is gut"}} return that I get from an API, but im not very good at typescript, actualy I was trying to modify exsisting code that someone wrote for me for a different thing I had.

Have a look.

 $('#frm').submit((e) => {
  e.preventDefault();
  const val = $('#search').val();
  if(!val) { alert('Please enter serial number!'); return false; }
  $('#results').html('Searching....');
  $.get(`http://localhost:8000/lp/${val}`, (d) => {
    console.log("got it!", d);
    $('#results').html(`<table style="width:100%"><thead><tr><th>Message</th></tr></thead><tbody><tr><td>${d.ari.Message}</td></tr></tbody>`);
  })
  return false;
 });
about 4 years ago · Juan Pablo Isaza
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!