Uncaught TypeError: e.indexOf is not a function

1 reply · opened Jan 13, 2020

Aagent8designJan 13, 2020

Hi,

I've recently needed to update a site which had not been touched in several years as the contact form had stopped working. I've been able to fix this by updating Canvas folders (/include/js/less/sass) and the form from the example page. This now works fine.

The problem is that the instances of the flex slider on this page have now stopped working and I'm getting this error in dev tools:

http://busybeenurseryschool.co.uk/preschool_petersfield.html

Uncaught TypeError: e.indexOf is not a function.

There was some custom code I think at the bottom of this page to allow for multiple instances of the slider work on a single page.

Can you let me know what the issue is and how to fix it?

Many thanks,
Nick.

SSemicolon WebSTAFFJan 14, 2020

Hello,

The issue appears to be with the outdated jQuery Codes. Replacing the following code:

jQuery(window).load(function()

with this:

jQuery(window).on( 'load', function()

should fix this issue.

We have checked out your Website and it appears that you have partially updated the Files. While you have updated the HTML Files and Bootstrap, you have not updated the style.css File. Please make sure that all the Files are updated properly according to the Documentation > Changelog Section so that there are no unexpected issues.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard