When navigating and refreshing the page via AJAX I get the error: Uncaught TypeError: Object #<Object> has no method 'slider'
Strange this is that if you go directly to the page the price slider function on the left bottom does work.
I read this may be because of a jQuery version conflict, so I added a test:
console.log("VERSION OF JQUERY:"+jQuery().jquery);
That returns 1.10.2
I would think just the latest version is available.
I tried adding noConflict()
, before this line:
$("#slider_pricefilter").slider({
But then a whole chain of other errors is triggered, consisting of Uncaught TypeError: Property '$' of object
type errors throughout all my jQuery code.
What can I do to fix this?