Author Topic: Error: 'JSON' is undefined  (Read 6196 times)

mshapiro

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Error: 'JSON' is undefined
« on: September 13, 2014, 04:20:37 am »
I've built an MVC 5 application and deployed it on an NT server running IIS 7.  When I use IE 11 as the client, which is what I developed it with, the page with the grid errors out after the remote data is returned from the server.  The grid is displayed with no data.  The browser error is "'JSON' is undefined" from a function in pggrid.min.js.  I don't have this issue with Chrome, everything is displayed correctly if I use that browser.  Somehow I don't have JSON support in my application configured correctly on the server, at least not for IE.  I would appreciate any ideas of how to go about debugging this.  Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Error: 'JSON' is undefined
« Reply #1 on: September 13, 2014, 11:21:23 am »
These settings might be helpful in your HTML page.

<!DOCTYPE html>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

https://forum.jquery.com/topic/json-is-undefined-with-jquery-min-2-0-3-on-ie-11

mshapiro

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Error: 'JSON' is undefined
« Reply #2 on: September 15, 2014, 09:30:32 pm »
That did it!  Thanks.