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

109
Visualizações
Why I cannot visualise an alert with a JSON on Javascript

I have a weird issue. I am on server using javascript files and try to collect info, data by JSON. The basically code, in a function that set a JSON.stringify() doesn't work, I browse it by Internet Explorer v.11

I have this function:

function testJSON(){

alert("here we are");
var obj = {answer:42};
alert("answer " + obj.answer);
alert(JSON.stringify(obj));
alert("end");
}

When I call the function I get popup with messages:

here we are

answer 42

but neither with the JSON or

end

What's wrong with my code?

I notice on the top of the jsp page this:

response.setHeader("Cache-control", "no-cache, no-store, must-revalidate");

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It works fine in internet explorer v11 for me.

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