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

108
Views
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 answers
Answer question

0

It works fine in internet explorer v11 for me.

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