john-oc / acute-select

Dropdown List Component for AngularJS - NO LONGER UNDER ACTIVE DEVELOPMENT
MIT License
123 stars 83 forks source link

IE 7 Support #30

Open parteekgarg01 opened 9 years ago

parteekgarg01 commented 9 years ago

Hi John,

Great plugin it has been very useful. But I'm facing certain issues with IE -7 select box is empty. Does acute select supports Ie -7? Is there any workaround.

Thanks Parteek

john-oc commented 9 years ago

Hi Parteek, I know it works with IE8 onwards, but I don't have access to any machines with IE7, so it's not something I can easily address. I know that there are various problems with trying to run angular on IE7. Does the rest of your angular app all function as expected? Kind regards, John

parteekgarg01 commented 9 years ago

Hi John,

Great to hear from you :+1: . Yes I tested the plugin in IE 8 and it works as charm. Rest of my app works fine with IE 7. Issue can also replicated with IE by changing the document mode to 7 from Developer tool.

Thanks Parteek

john-oc commented 9 years ago

I have IE10, but if I switch the Browser Mode to IE7 in the debugger tools, I can get it to work with angular 1.2.7. With angular 1.2.26 it fails with the error: "Object doesn't support property or method 'querySelector' ". It does work, though, if I then change it to Quirks mode. It looks like the ng team started using querySelector at some point, which IE7 doesn't support (at least not in standards mode). Which version of angular are you using? John

parteekgarg01 commented 9 years ago

Hi John,

Sorry for late reply. Even If I use angular 1.2.7 in acute-select-master project below issue is encountered

SCRIPT5022: [$sce:iequirks] Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information. http://errors.angularjs.org/1.2.7/$sce/iequirks File: angular.js, Line: 3656, Column: 7

I guess issue is related to iequirks. I'm already using doctype tag but still unable to resolve issue. Please can you help. Also if you can attach sample project with Iequirks workaround.

Thanks Parteek

john-oc commented 9 years ago

If IE7 works in quirks mode, this article may solve your problem:- http://www.charliecochran.com/blog/index.php/how-to-force-quirks-mode-in-ie7-but-keep-to-standards-mode-in-ie8-and-other-browsers/ Alternatively, you may be able fix it with the x-ua-compatible http header, depending on which other IE versions you have to support.