Internet Explorer 11 and Javascript

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
ianpanorton
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Feb 25, 2010 2:38 pm

Internet Explorer 11 and Javascript

Postby ianpanorton » Mon Oct 28, 2013 4:45 pm

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

User avatar
sozzled
Joomla! Guru
Joomla! Guru
Posts: 811
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Internet Explorer 11 and Javascript

Postby sozzled » Wed Dec 04, 2013 6:01 pm

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
@sozzled2904 - http://www.kuneze.com/blog
If you think I'm wrong then say "I think you're wrong." If you say "You're wrong!", how do you know?

User avatar
sozzled
Joomla! Guru
Joomla! Guru
Posts: 811
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Internet Explorer 11 and Javascript

Postby sozzled » Wed Dec 04, 2013 8:58 pm

The problem, in my case, was caused by curvycorners.js used by some Joomla extensions like swMenu, (among others).
@sozzled2904 - http://www.kuneze.com/blog
If you think I'm wrong then say "I think you're wrong." If you say "You're wrong!", how do you know?

barnea10
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Thu Nov 12, 2009 9:23 am
Location: IL
Contact:

Re: Internet Explorer 11 and Javascript

Postby barnea10 » Wed Dec 11, 2013 6:46 am

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
Studio Barnea
http://www.Kbarnea.com
Joomla Experts In Israel

barnea10
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Thu Nov 12, 2009 9:23 am
Location: IL
Contact:

Re: Internet Explorer 11 and Javascript

Postby barnea10 » Wed Dec 11, 2013 7:12 am

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*/ }
Studio Barnea
http://www.Kbarnea.com
Joomla Experts In Israel


Return to “General Questions/New to Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 7 guests