fslider and scroll : js error

2 replies · opened Sep 21, 2020

GgizbooSep 21, 2020

hi,

i have an error when i put the fslider in my home page : Uncaught TypeError: $ is not a function at eval (eval at jsLinking (functions.js:157), <anonymous>:3:8) at Object.jsLinking (functions.js:157) at Object.functions (functions.js:220) at Object.loadFlexSlider (functions.js:1417) at init (functions.js:2156) at dispatch (jquery.js:2) at v.handle (jquery.js:2) I integrate correctly the libs jquery, plugins and functions js in my footer.
it’s the same when i scroll : Uncaught TypeError: $ is not a function at functions.js:9 at dispatch (jquery.js:2) at v.handle (jquery.js:2) I use your 6.0.6.

Have you an idea ?

Thanks

For the test :

SSemicolon WebSTAFFSep 21, 2020

Hello,

This issue is not due to Canvas's JS Codes but the Custom Scripts used. Since you are using the Revolution Slider, you will need to create a No Conflict jQuery Variable when using $:
[ch_pre]var $ = jQuery.noConflict();[/ch_pre]

Also, consider reviewing this code:
[ch_pre]

var _settingsJSloadingQueue = [];
_settingsJSloadingQueue.push(function(){ $.localCore.init(); });

[/ch_pre]

This seems out of place.

Moreover, consider checking the Default Files provided and if there are no issues in the Default Files, consider adding your Custom JS Codes, step by step and then check for the errors. And for jQuery Codes, use jQuery.Function .

Hope this Helps!

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

GgizbooSep 21, 2020

hi,

Thanks for your answer.
I remove "var $ = jQuery.noConflict();" in your script :
var tpj=jQuery;
var revapi31;
//var $ = jQuery.noConflict();
tpj(document).ready(function() {...

And now it's ok, all work correctly

Regards

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