Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda