Monday, 9 March 2015

angularjs IE9 Error


First, since angularjs 1.3, it doesn't support ie8, but your ie9 angularjs project should works fine.

https://docs.angularjs.org/guide/ie

However, that only means your html elements renderered in a proper way, but your $http requests still have issues.


below post explains a solution for that:

https://andywalpole.me/#!/blog/139831/angularjs-cors-support-internet-explorer-9


Xdomain.js is the solution I used in my project, It works absolutely fine.


One more thing I want to notice is your client html file can point to multi-masters (api server/backend server) by:



    <!--[if IE 9]>
    <script src="//cdn.rawgit.com/jpillora/xdomain/0.6.17/dist/xdomain.min.js"></script>
    <script>
      xdomain.timeout= 660000;
      xdomain.slaves({
        'https://a.com': '/proxy.html',
        'https://b.com': '/proxy.html',
        'http://c.com': '/proxy.html'
      });
    </script>
    <![endif]-->



xdomain.timeout= 660000; is also needed. otherwise you will get a popup alert window for timeout.

No comments:

Post a comment