JavaScript IE9+ is messing up my JSON object

I was furious when i could not figure out why my app was working fine in Chrome but not IE. After hours of looking at my back end making sure my JSON was coming through to each browser correctly, I noticed this.

In Chrome the JSON object is parsed fine, except in IE9+ it added QUOTES around my Array! Here is the complete ajax call

var jsonTop = [];
var jsonBot = [];

$.when(
    $.ajax({
        url: 'http://localhost:999/empleplrestop',
        success: function(dataTop) {
            jsonTop = dataTop;
        }
    }), 
    $.ajax({
        url: 'http://localhost:999/empleplresbot',
        success: function(dataBot) {
            jsonBot = dataBot;
        }   
    })
).then(function() {
    loadTable();
});

As you can see, at the success: function(dataTop/Bot) is where it is adding it.

but in IE the JSON object requested through the AJAX was perfectly fine! (its just mock data)

Am I using $.when wrong? The Quotes are messing up my array!

Answer:1

I want scrollTop to trigger only once, so that the red box doesn't appear again after it has been closed with the button. I know there is .one(), but I have no idea how to apply it to my code. Below ...

I want scrollTop to trigger only once, so that the red box doesn't appear again after it has been closed with the button. I know there is .one(), but I have no idea how to apply it to my code. Below ...

Below is the code in which changeme is the text i want to change on the click of the button. HTML code and JS is below: 1) whatever user input in field will be capture and replace with changeme if ...

Below is the code in which changeme is the text i want to change on the click of the button. HTML code and JS is below: 1) whatever user input in field will be capture and replace with changeme if ...

  1. click button change text javascript
  2. click button change image javascript
  3. click button change color
  4. click button change background color css
  5. click button change text jquery
  6. click button change color css
  7. click button change image
  8. click button change color jquery

I'm looking to use a map to map a string to an integer value but allowing the int to be manipulated within the map. E.g. var Map : map<string, int>; Map["foo"] = 5; Map["foo"] = Map["foo"] * ...

I'm looking to use a map to map a string to an integer value but allowing the int to be manipulated within the map. E.g. var Map : map<string, int>; Map["foo"] = 5; Map["foo"] = Map["foo"] * ...

I want to write a code which can toggle two sentences fading in and fading out. But I want to toggle the sentences at the same location ie one text fades and the other starts coming in place of the ...

I want to write a code which can toggle two sentences fading in and fading out. But I want to toggle the sentences at the same location ie one text fades and the other starts coming in place of the ...

  1. fade in fade out text premiere pro
  2. fade in fade out text css
  3. fade in fade out text
  4. fade in fade out text slider
  5. fade in fade out text after effects
  6. fade in fade out text unity
  7. fade in fade out text animation css
  8. fade in fade out text animation
  9. fade in fade out text jquery
  10. fade in fade out text javascript
  11. fade in fade out text animation jquery
  12. fade in fade out text effect jquery