Hi,
Just wasted many hours trying to understand why code which works perfectly on my machine, fails on someone elses.....
I have a screen with an iGrid....
Getting the following error :
Microsoft JScript runtime error: The remote request to fetch data has failed: (parsererror) 'JSON' is undefined
Turns out its a 'compatibility mode' problem. When enabled/disabled (icon is blue on IE9) the script barfs, when grey it runs just fine.
As my system will be used by users with different browsers. OS's etc. (well thats WHY I am using your jQuery components in the first place :-O), I need to know that their systems will work without my having to tell them to use 'compatibility mode (or not).
If we are missing a JSON parser - then why not just supply one with the website ???. Surely we must be able to point at a suitable parser ???.
NB As I am still trialling your software I only have the minimised js files available so debugging exactly what went wrong is difficult to say the least!!
Thanks
Graham
hi Graham,
IE 7/8 do not have native JSON Parsing. If you run IE9 in Compatibility View you are going to experience the same issue. you should include the following reference and it should work fine:
https://raw.github.com/douglascrockford/JSON-js/master/json2.js
Hope it helps. Thanks,
Angel
Angel,
Thanks for the response but it still fails.
Added :
<script src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js" type="text/javascript"></script>
Graham,
github is not meant to be a CDN. I would simply download the json2.js file and include it directly in your scripts folder and subsequently change your src to be a local reference.
I had to do this for our project.
Steve
Might be simpler if I just point you (privately!) at our site - its still only demo.
Obviously I don't want to include the URL here in public.....
You can get my email from my login ??.
Hi Graham,
could you provide me some more info about the issues related to layout? Some screenshot or a list of errors (if any) would really help. Thanks !
Hmmmm
Interesting results :-((. The screen layout is now also affected and my 'wijmo' chart fails to render (I would use Infragistics if it was released yet :-(.
I'll have to take a deeper look at these issues, but its not a simple matter of adding this file.
NB Without it - the chart was still displayed in both modes :-O.
Thank for your input though ;-))