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

195
Views
API Call in Cordova App Returns 404 Error

I've been using XMLHTTPRequest first, but I have tried using jQuery Ajax. Keeps the same error. Used chrome://inspect to inspect my phone and in the console shows this:

GET https://freecurrencyapi.net/api/v2/latest?apikey=my-key&base_currency=EUR 404 (Not Found)

The code for XMLHTTPRequest:

function getJSON(url) {
var http = new XMLHttpRequest();

http.open("GET", url, false);
http.send(null);

return JSON.parse(http.responseText);

}

The code for jQuery Ajax:

` $.ajax({
type: "GET",
url: "https://freecurrencyapi.net/api/v2/latest?apikey=my-key&base_currency=" + from_val

}).done((data) => {
    to_box.value = data.data[to_val] * parseFloat(from_box.value);
});

`

Please tell me what to do. thank you.

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!