Page 1 of 1

Internet Explorer 11 and Javascript

Posted: Mon Oct 28, 2013 4:45 pm
by ianpanorton
Hi - I'm having problems with IE 11 not recognising some javascript and giving the following error popup when the page is visited: Scanstyles does nothing in Webkit/Firefox/Opera.
The popup denies access to the page.
Looking round Google I see that IE is having problems with curvy corners, which I am using on my site www.lucernapartners.com, J2.5.14.
Apparently it happens because Joomla is not recognising IE 11.
I've seen the following fix:
change
this.isMoz=A.indexOf("firefox")!=-1
to
this.isMoz=A.indexOf("gecko")!=-1;
Can anyone tell me where I can find, or add this code to a Beez 20 template?
Or indeed, if there is any other fix that works?
Thanks
Ian

Re: Internet Explorer 11 and Javascript

Posted: Wed Dec 04, 2013 6:01 pm
by sozzled
Curious that this issue should have cropped up with IE11, isn't it? There's a whole colourful discussion at http://answers.microsoft.com/en-us/ie/f ... 8970536cc1 and the general consensus of opinion is to add the offending website to your "compatibility list".

This, however, is an unacceptable solution. While, sure, on the one hand you get rid of the nagging "Scanstyles does nothing in Webkit/Firefox/Opera" prompt - and, in my experience, I have not been denied access to the page after acknowledging the prompt - if you add the website to the list of sites that IE11 will display in "compatibility mode", you will probably lose the "extra" CSS3 additions you might have implemented in your design.

So, the choice comes down to

(a) tolerate the nagging "Scanstyles does nothing in Webkit/Firefox/Opera" prompt - which is going to really going to turn away a section of your users who still think that IE11 is a good browser to work with; or

(b) get rid of the CSS3 additions because, if you've used them, they won't work in IE11 "compatibility mode"; or

(c) figure out what's going on in the Javascript that's making this happen?

For me, I'm not sure if this is a template issue or a Joomla issue (and, in my case, I'm using J! 3.2.0) but I would appreciate some guidance from the CMS team on this one. Thanks

Re: Internet Explorer 11 and Javascript

Posted: Wed Dec 04, 2013 8:58 pm
by sozzled
The problem, in my case, was caused by curvycorners.js used by some Joomla extensions like swMenu, (among others).

Re: Internet Explorer 11 and Javascript

Posted: Wed Dec 11, 2013 6:46 am
by barnea10
sozzled wrote:The problem, in my case, was caused by curvycorners.js used by some Joomla extensions like swMenu, (among others).
hi
im using swmenu too and get this error - can you advice how to fix it ?
thanks
Banrea

Re: Internet Explorer 11 and Javascript

Posted: Wed Dec 11, 2013 7:12 am
by barnea10
ok found the fix here :
https://code.google.com/p/curvycorners/ ... ail?id=119


open : modules/mod_swmenupro/curvycorners.src.js

after the line

this.isIE = agent.indexOf("msie") > -1;


add this line :

this.isIE11=agent.indexOf("trident/7.0")>-1;

and after -

else curvyCorners.alert('Scanstyles does nothing in Webkit/Firefox/Opera');

add this:

else if (curvyBrowser.isIE11) { /*do nothing*/ }