jquery-3.3.1.min.js:2 Uncaught TypeError: e.indexOf is not a function at w.fn.init.w.fn.load (jquery-3.3.1.min.js:2) at t.f.load (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:5096) at new t (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:78160) at HTMLDivElement.eval (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:1757) at Function.each (jquery-3.3.1.min.js:2) at w.fn.init.each (jquery-3.3.1.min.js:2) at w.fn.init.e.fn.layerSlider (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:1740) at HTMLDocument.<anonymous> (app_layerslider.js:20) at l (jquery-3.3.1.min.js:2) at c (jquery-3.3.1.min.js:2)
Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.
LayerSlider should be working with both jQuery versions. Please show us your site or a test page where we can check on this. Thank you.
We've made some tests with a couple sliders, but they were working properly with both jQuery versions you mentioned.
As we can see in your code, you are using both jQuery versions (the old and v3 together) at the same time. This is not recommended, as multiple jQuery can conflict with each other.
I have both v5 and latest v6.5, both work with Jquery 1.x, but neither with Jquery 3.x.
Below is the error(s) encountered when running with :
-------------------------------- error message -----------------------------------
jquery-3.3.1.min.js:2 jQuery.Deferred exception: e.indexOf is not a function TypeError: e.indexOf is not a function at w.fn.init.w.fn.load (http://l58_hr.dev/Am/js/global/jquery-3.3.1.min.js:2:82468) at t.f.load (eval at <anonymous> (http://l58_hr.dev/layerslider/js/layerslider.kreaturamedia.jquery.js:13:1), <anonymous>:1:5096) at new t (eval at <anonymous> (http://l58_hr.dev/layerslider/js/layerslider.kreaturamedia.jquery.js:13:1), <anonymous>:1:78160) at HTMLDivElement.eval (eval at <anonymous> (http://l58_hr.dev/layerslider/js/layerslider.kreaturamedia.jquery.js:13:1), <anonymous>:1:1757) at Function.each (http://l58_hr.dev/Am/js/global/jquery-3.3.1.min.js:2:2573) at w.fn.init.each (http://l58_hr.dev/Am/js/global/jquery-3.3.1.min.js:2:1240) at w.fn.init.e.fn.layerSlider (eval at <anonymous> (http://l58_hr.dev/layerslider/js/layerslider.kreaturamedia.jquery.js:13:1), <anonymous>:1:1740) at HTMLDocument.<anonymous> (http://l58_hr.dev/Am/js/app_layerslider.js:20:22) at l (http://l58_hr.dev/Am/js/global/jquery-3.3.1.min.js:2:29375) at c (http://l58_hr.dev/Am/js/global/jquery-3.3.1.min.js:2:29677) undefined
jquery-3.3.1.min.js:2 Uncaught TypeError: e.indexOf is not a function at w.fn.init.w.fn.load (jquery-3.3.1.min.js:2) at t.f.load (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:5096) at new t (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:78160) at HTMLDivElement.eval (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:1757) at Function.each (jquery-3.3.1.min.js:2) at w.fn.init.each (jquery-3.3.1.min.js:2) at w.fn.init.e.fn.layerSlider (eval at <anonymous> (layerslider.kreaturamedia.jquery.js:13), <anonymous>:1:1740) at HTMLDocument.<anonymous> (app_layerslider.js:20) at l (jquery-3.3.1.min.js:2) at c (jquery-3.3.1.min.js:2)
The related JS script is attached below:
Please help. Thanks
Jim
Hello Jim,
Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.
LayerSlider should be working with both jQuery versions. Please show us your site or a test page where we can check on this. Thank you.
Dear Attila,
Thanks for your prompt response.
I've done some digging with v5 & v6.5, both showing the same problem when replacing jquery 1.x with jquery 3.x.
While I was trying to compile a test page to replicate the problem with v6.5, I found it's more complex than v5, where additional issues exist.
To make the things simpler, I hereby enclose the sources code in v5,
... ...
... ...
The test page won't work with Jquery 3.x ('/Am/js/global/jquery-3.3.1.min.js').
However, if you override Jquery 3.x with Jquery 1.x by inserting "/layerslider/js/jquery.js", it would work fine.
For details, please see attached.
Thanks
Jim
Thank you for the feedback. My colleagues and I will look into this to see what we can find, and get back to you.
Thank you for your patience.
We've made some tests with a couple sliders, but they were working properly with both jQuery versions you mentioned.
As we can see in your code, you are using both jQuery versions (the old and v3 together) at the same time. This is not recommended, as multiple jQuery can conflict with each other.
Please only pull jQuery v3 and try it that way.
Hi Attila,
Thanks for your reply.
Using both Jquery 1.x & 3.x in the test page is purely for testing purpose, it does not change the fact that Layerslider v5 wouldn't with Jquery 3.x.
When I actually commented out the Jquery 1.x line, the page stops working with the errors as shown in the attached.
Please check again. Thanks.
Jim
We made these tests using the latest plugin release, which is v6.10.
Version 5 of LayerSlider is 4-5 years old, jQuery 3 did not even exist back then, so naturally it won't work with it.
Please use an up to date plugin version.