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

141
Vistas
My json data wont show in javascript but its correctly programmed to do so

Im making a cryptocurrency using python,html,and javascript. I have everything working but a balance checker. Im using the same method for the balance checker that i used for every other service in my app. I dont know why this happens but it gets the data that works but then it just displays nothing. Code for getting data(javascript):

function getbal(){
        var address=document.getElementById("address").value;
        let xhr = new XMLHttpRequest();
        xhr.open('GET', '/wallet/getbalance?address='+address);
        xhr.send();
        raw=xhr.responseText;
        data=raw;
        alert(data)
        return data;
      };

GET url response is 200 and it shows 1.0 enter image description here I dont know why this is happening!

I am trying to get the wallet balance and im expecting a str value.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Ok guys sorry for wasting your time. I read the docs for the function and i was parsing it wrong. I was using an outdated function that has many errors.

about 4 years ago · Juan Pablo Isaza Denunciar
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