Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda