Remote debug a site? JSON issue with IE8

2019-09-06 20:30发布

The scenario is that the website works wonderfully on all machines except the ones where the client works. It's in Africa and I've no hope of getting access to it. He has limited IT knowledge and we don't know a great deal about the companies net policies.

I know that he is using IE8 with the doc mode being 8 as well, I suspected it was running in 7 because of some CSS issues but apparently not.

I use a JSON file and Ajax query to populate an important part of the site. It works well in all main browsers. I've used Dev mode and tried IE7 and IE8 and it still works.

However, his machine doesn't load anything, I output messages into the console and when he checked (confirmed via screen dump) there was emptiness.

What is love is either a way or means of debugging it from here, full details about his machine or some explanation as to why the json can't be read.

If anyone is using IE8 perhaps you could have a peek- it's kingpetroleum.co.uk/conversion.php

The drop down should populate the form web selected. Thanks for any help.

Edit: there's a redirect on the index page that goes to the old site. Please use the /conversion.php if you check it out

1条回答
2楼-- · 2019-09-06 20:44

As mentioned in the comments you need to add a polyfill for the JSON object which is not supported on older browsers. See here for more info on browser compatibility of the JSON object. They mention that it should be compatible for IE8, but this is not always the case and if the user is running IE8 in compatibility-mode it won't work either.

You should include the polyfill script file before you load your other scripts, I recommend doing it in conditional comments:

<head>
  <!--[if lte IE 8]>
    <script src="/path/to/json3.js"></script>
  <![endif]-->
</head>

This would only load the polyfill for IE8 and below.

查看更多
登录 后发表回答