Script error

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sat Jan 25, 2014 12:03 am
My original post was regarding IE7 (which isn't supported) so as I am not getting any response, this is a different topic for later versions.

I'm getting reports that many users with IE8/9 and Firefox are getting script errors...
(This is from IE debug in IE 9)

This part is highlighted in yellow in the script debug window...


jQuery(document).find('a[data-toggle="tab"]').on('click', function(e) {
// Store the selected tab href in localstorage
window.localStorage.setItem('tab-href', $(e.target).attr('href'));
});


This is what is reported in the right side window...

SCRIPT438: Object doesn't support property or method 'on'
tabs-state.js, line 16 character 9
SCRIPT438: Object doesn't support property or method 'on'
tabs-state.js, line 16 character 9
SCRIPT438: Object doesn't support property or method 'on'
tabs-state.js, line 16 character 9


Any ideas, please?

site: http://www.ebme.co.uk

Thank you.
User avatar
Senior Boarder

GK User
Sat Jan 25, 2014 7:26 pm
Hello,

In general it is a bug in joomla core code, because this script is a part of the core code. I suggest you to apply this fix: https://github.com/ralain/joomla-cms/co ... 2bec567e6f
User avatar
Administrator

GK User
Mon Jan 27, 2014 1:03 pm
HI dziudek,
Thanks for responding - I appreciate it.
I removed the line of code as you suggested and the script errors have stopped. :)

Thanks.

(Unfortunately, it wasn't the cause of the IE7 problem, but I'll keep looking.)
User avatar
Senior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.