Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Javascript Error

Featured Lock Resolved
I am receiving javascript error on the Politist Template / SP Page builder.

TypeError: window.addEvent is not a function. (In 'window.addEvent', 'window.addEvent' is undefined)

Suggestions

4 Answers

Paul Andrews

More than a month ago #Permalink
I'm getting the same error plus a few other bugs I posted about but have had no response. I'm struggling getting a number of functions working on this template that are working fine elsewhere.

Michael Hackbarth

More than a month ago #Permalink
It appears that the template is not loading MooTools. (It was depreciated in Joomla 3 I think, but apparently necessary for this template)

I added the following code to the index.php page above the other frameworks in the code: JHtml::_('behavior.framework');

Do not know if this will totally "fix" all of the issues, but some things appear to be working correctly now and the error is gone.

What say the developers at Joomshaper?

Nayem Majhar - Staff

More than a month ago #Permalink
Previously, one user complains about that I sent the same solution to him/her. I have a question. Could you explain in detail when it happened? It should help me to find out the exact problem. Most of our users are not complaining about that.

Hope you assistance. Thank You.

Michael Hackbarth

More than a month ago #Permalink
With the addition of the JHtml::_('behavior.framework'); to the index page the error TypeError: window.addEvent is not a function. (In 'window.addEvent', 'window.addEvent' is undefined) appears and the following problems are created on the from page
- the sticky header does not "stick"
- the full width slider does not function properly - or even show
- there are issues with the modal pop-up login

As of now I am not receiving the error, I am getting inconsistent behavior from the full width slider.

This is a site upgrade to this template (not a quick install)

Another issue that I have found is the SP Page Builder will not function if it is not on the default template for the site - might be related maybe not


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 119
Sifat

Sifat

Total Accepted Answers: 63
Toufiq

Toufiq

Total Accepted Answers: 60
Mehtaz Afsana

Mehtaz Afsana

Total Accepted Answers: 13
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 11

118

Templates

302705

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us